46 대여 기록이 존재하는 자동차 리스트 구하기
SELECT H.CAR_ID
FROM CAR_RENTAL_COMPANY_CAR C JOIN CAR_RENTAL_COMPANY_RENTAL_HISTORY H
ON C.CAR_ID=H.CAR_ID
WHERE C.CAR_TYPE = '세단' AND H.START_DATE LIKE '%-10-%'
GROUP BY 1
ORDER BY 1 DESC
SELECT H.CAR_ID
FROM CAR_RENTAL_COMPANY_CAR C JOIN CAR_RENTAL_COMPANY_RENTAL_HISTORY H
ON C.CAR_ID=H.CAR_ID
WHERE C.CAR_TYPE = '세단' AND H.START_DATE LIKE '%-10-%'
GROUP BY 1
ORDER BY 1 DESC