[SQL : 프로그래머스] 중복 제거하기
문제 https://programmers.co.kr/learn/courses/30/lessons/59408 풀이 SELECT COUNT(DISTINCT NAME) FROM ANIMAL_INS WHERE NAME!='' 중복제거가 DISTINCT인건 인지하고 있었는데, COUNT함...
문제 https://programmers.co.kr/learn/courses/30/lessons/59408 풀이 SELECT COUNT(DISTINCT NAME) FROM ANIMAL_INS WHERE NAME!='' 중복제거가 DISTINCT인건 인지하고 있었는데, COUNT함...
문제 https://programmers.co.kr/learn/courses/30/lessons/59412?language=mysql 풀이 SELECT HOUR(DATETIME), COUNT(HOUR(DATETIME)) FROM ANIMAL_OUTS WHERE HOUR(DATETI...
문제 https://programmers.co.kr/learn/courses/30/lessons/59042 풀이 SELECT ANIMAL_ID, NAME FROM ANIMAL_OUTS WHERE ANIMAL_ID NOT IN ( SELECT ANIMAL_ID FROM...
문제 https://programmers.co.kr/learn/courses/30/lessons/59405 풀이 SELECT NAME FROM ANIMAL_INS WHERE DATETIME=(SELECT MIN(DATETIME) FROM ANIMAL_INS) SELECT 구절이 ...
문제 https://programmers.co.kr/learn/courses/30/lessons/59041 풀이 SELECT NAME, COUNT(NAME) FROM ANIMAL_INS GROUP BY NAME HAVING COUNT(NAME) > 1 ORDER BY NAME...