그룹별 조건에 맞는 식당 목록 출력하기
https://school.programmers.co.kr/learn/courses/30/lessons/131124 문제 풀이 SELECT M.MEMBER_NAME, R.REVIEW_TEXT, TO_CHAR(R.REVIEW_DATE, 'YYYY-MM-DD') AS "REVIEW_DATE" FROM ( SELECT MEMBER_...
https://school.programmers.co.kr/learn/courses/30/lessons/131124 문제 풀이 SELECT M.MEMBER_NAME, R.REVIEW_TEXT, TO_CHAR(R.REVIEW_DATE, 'YYYY-MM-DD') AS "REVIEW_DATE" FROM ( SELECT MEMBER_...
https://school.programmers.co.kr/learn/courses/30/lessons/132204 문제 풀이 SELECT A.APNT_NO, P.PT_NAME, A.PT_NO, A.MCDP_CD, D.DR_NAME, A.APNT_YMD FROM APPOINTMENT A JOIN PATIENT P ON A.PT_NO ...
https://school.programmers.co.kr/learn/courses/30/lessons/144856 문제 풀이 SELECT A.AUTHOR_ID, A.AUTHOR_NAME, B.CATEGORY, SUM(B.PRICE * S.SALES) AS "TOTAL_SALES" FROM BOOK B JOIN BOOK_SALES S ...
https://school.programmers.co.kr/learn/courses/30/lessons/62284 문제 풀이 SELECT CART_ID FROM ( SELECT DISTINCT(CART_ID), NAME, PRICE FROM CART_PRODUCTS WHERE NAME IN ('Milk', 'Y...
https://school.programmers.co.kr/learn/courses/30/lessons/131116 문제 풀이 SELECT A.CATEGORY, A.PRICE AS "MAX_PRICE", B.PRODUCT_NAME FROM( SELECT * FROM FOOD_PRODUCT WHERE 1 = 1 ...
https://school.programmers.co.kr/learn/courses/30/lessons/131118 문제 풀이 SELECT A.REST_ID, B.REST_NAME, B.FOOD_TYPE, B.FAVORITES, B.ADDRESS, A.SCORE FROM ( SELECT I.REST_ID, ROUND(AVG(R...
https://school.programmers.co.kr/learn/courses/30/lessons/59045 문제 풀이 SELECT I.ANIMAL_ID, I.ANIMAL_TYPE, I.NAME FROM ANIMAL_INS I JOIN ANIMAL_OUTS O ON I.ANIMAL_ID = O.ANIMAL_ID WHERE 1=1 A...
https://school.programmers.co.kr/learn/courses/30/lessons/131532 문제 풀이 SELECT EXTRACT(YEAR FROM O.SALES_DATE) AS "YEAR", EXTRACT(MONTH FROM O.SALES_DATE) "MONTH", U.GENDER, COUNT(DISTINCT ...
https://school.programmers.co.kr/learn/courses/30/lessons/131117 문제 풀이 SELECT P.PRODUCT_ID, P.PRODUCT_NAME, SUM(P.PRICE * O.AMOUNT) AS "TOTAL_SALES" FROM FOOD_PRODUCT P JOIN FOOD_ORDER O ON...
https://school.programmers.co.kr/learn/courses/30/lessons/151139 문제 풀이 -- 1. 대여횟수가 5 이상인 자동차 리스트 조회 -- 2. 해당기간 동안의 월별 자동차ID 별 총 대여횟수 조회 SELECT EXTRACT(MONTH FROM START_DATE) AS "MONTH", A.C...