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

day21 #63

Merged
merged 1 commit into from
Mar 27, 2023
Merged

day21 #63

merged 1 commit into from
Mar 27, 2023

Conversation

KimGaEul
Copy link
Contributor

day 21 #62

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.

역시 잘하는구먼

@@ -0,0 +1,24 @@
1번 : 자동차 대여 기록에서 대여중 / 대여 가능 여부 구분하기
SELECT CAR_ID, IF(SUM(IF('2022-10-16' BETWEEN START_DATE AND END_DATE,1,0))>1,'대여중','대여 가능') AS AVAILABILITY
Copy link
Member

Choose a reason for hiding this comment

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

select 절에 if 문의 반환값은 0,1 이군요.. 스고이

@KimGaEul KimGaEul merged commit 7507c87 into main Mar 27, 2023
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