[프로그래머스/SQL] SELECT 서울에 위치한 식당 목록 출력하기
문제 설명 문제 풀이 1 2 3 4 5 SELECT i.REST_ID, i.REST_NAME, i.FOOD_TYPE, i.FAVORITES, i.ADDRESS, round(avg(r.REVIEW_SCORE), 2)"SCORE" from REST_INFO i, REST_REVIEW r where i.REST_ID = r.REST_ID and substring(i.ADDRESS, 1, 2)='서울' group by i.REST_ID order by SCORE desc; Colored by Color Scripter cs 실행 결과