sql/Advent of SQL 2024

SQL 문제 풀이 챌린지(4/25) - 지자체별 따릉이 정류소 개수 세기

gooreumsea 2024. 12. 4. 06:40

저작권 문제로 인해, 직접 작성한 쿼리문만 공개.

 

 

 

4. 지자체별 따릉이 정류소 개수 세기

https://solvesql.com/problems/count-stations/

SELECT 
  local,
  COUNT(station_id) AS num_stations
FROM station
GROUP BY local
ORDER BY COUNT(station_id) ASC;