Closed ji-0630 closed 1 year ago
SELECT CAR_ID, round(avg(datediff(END_DATE, START_DATE)+1), 1) as "AVERAGE_DURATION" from CAR_RENTAL_COMPANY_RENTAL_HISTORY group by CAR_ID having AVERAGE_DURATION >= 7 order by AVERAGE_DURATION desc, CAR_ID desc
문제 설명