From 2b554ecd5a710c5ece03814388c551275354ced4 Mon Sep 17 00:00:00 2001 From: Gyunseo Lee Date: Sun, 25 Feb 2024 14:23:10 +0900 Subject: [PATCH] 2024-02-25 14:23:10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Affected files: .obsidian/workspace.json src/content/blog/programmers-인기있는-아이스크림.md --- .obsidian/workspace.json | 16 +++++----- ...64\354\212\244\355\201\254\353\246\274.md" | 30 +++++++++++++++++++ 2 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 "src/content/blog/programmers-\354\235\270\352\270\260\354\236\210\353\212\224-\354\225\204\354\235\264\354\212\244\355\201\254\353\246\274.md" diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index e68d8b393..3621333a7 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -20,12 +20,12 @@ } }, { - "id": "ed2cc7886387bddc", + "id": "12e37c51339f3c1d", "type": "leaf", "state": { "type": "markdown", "state": { - "file": "src/assets/template/obsidian-template.md", + "file": "src/content/blog/programmers-인기있는-아이스크림.md", "mode": "source", "source": false } @@ -98,7 +98,7 @@ "state": { "type": "backlink", "state": { - "file": "src/assets/template/obsidian-template.md", + "file": "src/content/blog/programmers-인기있는-아이스크림.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -115,7 +115,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "src/assets/template/obsidian-template.md", + "file": "src/content/blog/programmers-인기있는-아이스크림.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -138,7 +138,7 @@ "state": { "type": "outline", "state": { - "file": "src/assets/template/obsidian-template.md" + "file": "src/content/blog/programmers-인기있는-아이스크림.md" } } } @@ -161,9 +161,10 @@ "table-editor-obsidian:Advanced Tables Toolbar": false } }, - "active": "ed2cc7886387bddc", + "active": "12e37c51339f3c1d", "lastOpenFiles": [ "src/content/blog/24-sw-maestro-1st-coding-test.md", + "src/content/blog/programmers-인기있는-아이스크림.md", "src/assets/template/obsidian-template.md", "src/content/blog/ubuntu-partition.md", "src/content/blog/update-markdown-AST-node-url-value.md", @@ -207,7 +208,6 @@ "dist/posts/virtual-lans.png", "src/content/blog/how-to-configure-astropaper-theme.md", "src/content/blog/resolve-obsidian-git-path-environment-variable-error.md", - "src/content/blog/nestjs-prisma-deep-dive.md", - "src/content/blog/install-asdf-on-ubuntu-linux-and-ohmyzsh.md" + "src/content/blog/nestjs-prisma-deep-dive.md" ] } \ No newline at end of file diff --git "a/src/content/blog/programmers-\354\235\270\352\270\260\354\236\210\353\212\224-\354\225\204\354\235\264\354\212\244\355\201\254\353\246\274.md" "b/src/content/blog/programmers-\354\235\270\352\270\260\354\236\210\353\212\224-\354\225\204\354\235\264\354\212\244\355\201\254\353\246\274.md" new file mode 100644 index 000000000..816a76e36 --- /dev/null +++ "b/src/content/blog/programmers-\354\235\270\352\270\260\354\236\210\353\212\224-\354\225\204\354\235\264\354\212\244\355\201\254\353\246\274.md" @@ -0,0 +1,30 @@ +--- +author: Gyunseo Lee +title: Programmers 인기있는 아이스크림 SQL 문제 풀이 +pubDatetime: 2024-02-25T14:17:00+09:00 +modDatetime: 2024-02-25T14:17:00+09:00 +featured: false +draft: false +tags: + - SQL + - Programmers + - Coding-Test +description: ORDER BY 정렬 순서는 여러 개 지정해 줄 수 있다... +ogImage: https://res.cloudinary.com/gyunseo-blog/image/upload/f_auto/v1708838398/image_qqt5rc.png +--- + +## Table of contents + +## 들어가며 + +![](https://res.cloudinary.com/gyunseo-blog/image/upload/f_auto/v1708838398/image_qqt5rc.png) + +이 문제는 여러 개의 Column에서 ORDER BY 정렬 순서를 지정해 줄 수 있는지를 물어보는 문제입니다. + +## SQL Query + +```sql +SELECT flavor +FROM first_half +ORDER BY total_order DESC, shipment_id ASC; +```