You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM CAR_RENTAL_COMPANY_CAR A JOIN CAR_RENTAL_COMPANY_RENTAL_HISTORY B ONA.CAR_ID=B.CAR_IDJOIN CAR_RENTAL_COMPANY_DISCOUNT_PLAN C ONA.CAR_TYPE=C.CAR_TYPE
4
+
WHEREA.CAR_ID NOT IN (
6
5
SELECT CAR_ID
7
6
FROM CAR_RENTAL_COMPANY_RENTAL_HISTORY
8
7
WHERE END_DATE >'2022-11-01'AND START_DATE <'2022-12-01'
9
-
)ANDP.DURATION_TYPE='30일 이상'
10
-
GROUP BYC.CAR_ID
11
-
HAVINGC.CAR_TYPEIN ('세단','SUV') AND (FEE>=500000AND FEE<2000000)
12
-
ORDER BY FEE DESC, CAR_TYPEASC, CAR_ID DESC
8
+
) ANDC.DURATION_TYPE='30일 이상'
9
+
GROUP BYA.CAR_ID
10
+
HAVINGA.CAR_TYPEIN ('세단','SUV') AND (FEE>=500000AND FEE<2000000)
0 commit comments