Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D23 #70

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

D23 #70

wants to merge 2 commits into from

Conversation

KimGaEul
Copy link
Contributor

@KimGaEul KimGaEul commented Apr 3, 2023

day23 #68

Copy link
Member

@thalals thalals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그뤠잇

INNER JOIN ANIMAL_OUTS AO
ON AI.ANIMAL_ID = AO.ANIMAL_ID
WHERE AI.SEX_UPON_INTAKE LIKE 'Intact%'
AND AO.SEX_UPON_OUTCOME NOT LIKE 'Intact%'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전체 검색이 아닌 전위 검색으로 필요한 부분만 명시한 부분 매우 좋네요 👍

SELECT 0 AS HOUR
UNION ALL
SELECT HOUR + 1 FROM TIME WHERE HOUR < 23
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 rownum 을 사용했는데
WITH RECURSIVE 로 가상테이블 생성해주는 방법도 있네요 와우!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants