42. 평균 일일 대여 요금 구하기
SELECT ROUND(AVG(DAILY_FEE)) AVERAGE_FEE
FROM CAR_RENTAL_COMPANY_CAR
WHERE CAR_TYPE = 'SUV'
43. 조건에 맞는 사용자와 총 거래금액 조회하기
SELECT USER_ID, NICKNAME, TOTAL_SALES
FROM
(SELECT U.USER_ID, U.NICKNAME, SUM(B.PRICE) TOTAL_SALES
FROM USED_GOODS_BOARD B JOIN USED_GOODS_USER U ON B.WRITER_ID=U.USER_ID
WHERE STATUS='DONE'
GROUP BY USER_ID) A
WHERE TOTAL_SALES>=700000
ORDER BY TOTAL_SALES