jeeyeonLIM / coding_test

Let's practice the coding test!
1 stars 0 forks source link

Level4. 입양 시각 구하기(2) 도움말 #7

Open jeeyeonLIM opened 4 years ago

jeeyeonLIM commented 4 years ago

문제 설명

jeeyeonLIM commented 4 years ago

작성코드

ver1. ❌


SELECT HOUR(DATETIME) AS HOUR, COUNT(*) AS COUNT
FROM ANIMAL_OUTS 
GROUP BY HOUR(DATETIME)
ORDER BY HOUR(DATETIME);

image

ver2 . ⭕

설명

jeeyeonLIM commented 4 years ago
extract(hour from datetime)