Skip to content

Commit

Permalink
2024-04-23 01:32:27
Browse files Browse the repository at this point in the history
Affected files:
.obsidian/workspace.json
src/content/blog/programmers-보호소에서-중성화한-동물.md
src/content/blog/programmers-즐겨찾기가-가장-많은 식당-정보-출력하기.md
  • Loading branch information
gyunseo committed Apr 22, 2024
1 parent 20abd60 commit dddd587
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 13 deletions.
41 changes: 29 additions & 12 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,32 @@
{
"id": "e86c6645d916ff37",
"type": "tabs",
"children": [
{
"id": "c692232475758d96",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "src/content/blog/programmers-보호소에서-중성화한-동물.md",
"mode": "source",
"source": false
}
}
}
]
},
{
"id": "38090db7696b1965",
"type": "tabs",
"children": [
{
"id": "4fd2587bb7adcaed",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "src/content/blog/boj-5014-스타트링크.md",
"file": "src/content/blog/programmers-즐겨찾기가-가장-많은 식당-정보-출력하기.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -48,7 +66,7 @@
"state": {
"type": "search",
"state": {
"query": "",
"query": "tag: #SQL ",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
Expand Down Expand Up @@ -85,7 +103,7 @@
"state": {
"type": "backlink",
"state": {
"file": "src/content/blog/boj-5014-스타트링크.md",
"file": "src/content/blog/programmers-보호소에서-중성화한-동물.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -102,7 +120,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "src/content/blog/boj-5014-스타트링크.md",
"file": "src/content/blog/programmers-보호소에서-중성화한-동물.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -125,7 +143,7 @@
"state": {
"type": "outline",
"state": {
"file": "src/content/blog/boj-5014-스타트링크.md"
"file": "src/content/blog/programmers-보호소에서-중성화한-동물.md"
}
}
}
Expand All @@ -148,10 +166,13 @@
"table-editor-obsidian:Advanced Tables Toolbar": false
}
},
"active": "4fd2587bb7adcaed",
"active": "c692232475758d96",
"lastOpenFiles": [
"src/content/blog/boj-1026-보물.md",
"src/assets/Screenshot 2024-04-23 at 01.28.02.png",
"src/content/blog/programmers-보호소에서-중성화한-동물.md",
"src/content/blog/programmers-즐겨찾기가-가장-많은 식당-정보-출력하기.md",
"src/content/blog/boj-5014-스타트링크.md",
"src/content/blog/boj-1026-보물.md",
"src/content/blog/boj-2230-수-고르기.md",
"src/content/blog/boj-15649-N과-M-(1).md",
"src/content/blog/at-coder-beginner-contest-346-up-solve.md",
Expand All @@ -162,7 +183,6 @@
"src/content/blog/software-maestro-application.md",
"src/content/blog/24-sw-maestro-1st-coding-test.md",
"src/content/blog/programmers-인기있는-아이스크림.md",
"src/content/blog/programmers-즐겨찾기가-가장-많은 식당-정보-출력하기.md",
"src/content/blog/programmers-가장-비싼-상품-구하기.md",
"src/assets/template/obsidian-template.md",
"src/content/blog/ubuntu-partition.md",
Expand All @@ -175,8 +195,6 @@
"src/content/blog/go-study.md",
"src/content/blog/dfs-and-bfs-algorithms.md",
"src/content/blog/0-1-knapsack-dp.md",
"src/content/blog/dynamic-programming.md",
"src/content/blog/how-to-use-neovim-on-vscode.md",
"dist/assets/[email protected]",
"dist/assets/forrest-gump-quote.webp.jpg",
"dist/_astro/[email protected]",
Expand All @@ -194,7 +212,6 @@
"dist/tags/wslg/1",
"dist/tags/wsl/2/index.html",
"dist/posts/우테코-2차-소감문.png",
"dist/posts/우테코-1차-소감문.png",
"dist/posts/virtual-lans.png"
"dist/posts/우테코-1차-소감문.png"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
author: Gyunseo Lee
title: "Programmers: 보호소에서 중성화한 동물"
pubDatetime: 2024-04-23T01:26:00+09:00
modDatetime: 2024-04-23T01:26:00+09:00
featured: false
draft: false
tags:
- Coding-Test
- SQL
- Programmers
- Join
description: Inner Join을 이용해서 푼다...
ogImage: https://res.cloudinary.com/gyunseo-blog/image/upload/f_auto/v1713803314/image_svstd7.png
---

## Table of contents

## 들어가며

![](https://res.cloudinary.com/gyunseo-blog/image/upload/f_auto/v1713803314/image_svstd7.png)

## SQL Query

```sql
SELECT o.animal_id, o.animal_type, o.name
FROM animal_outs o
INNER JOIN animal_ins i
ON o.animal_id = i.animal_id
WHERE (o.sex_upon_outcome LIKE "%Neutered%"
OR o.sex_upon_outcome LIKE "%Spayed%")
AND i.sex_upon_intake LIKE "%Intact%"
ORDER BY o.animal_id
```

Inner Join은 두 테이블 모두 조인 컬럼에 해당하는 값이 모두 존재한는 경우를 말한다.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
author: Gyunseo Lee
title: Programmers 즐겨찾기가 가장 많은 식당 정보 출력하기 문제 풀이
title: "Programmers: 즐겨찾기가 가장 많은 식당 정보 출력하기"
pubDatetime: 2024-02-27T20:06:00+09:00
modDatetime: 2024-02-27T20:06:00+09:00
featured: false
Expand All @@ -9,6 +9,7 @@ tags:
- Coding-Test
- SQL
- Programmers
- Sub-Query
description: 서브 쿼리 적극 이용하기
ogImage: https://res.cloudinary.com/gyunseo-blog/image/upload/f_auto/v1709300745/image_jmhaka.png
---
Expand Down

0 comments on commit dddd587

Please sign in to comment.