Skip to content

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.

3 participants