728x90
반응형
Revising Aggregations - The Count Function | HackerRank
Query the number of cities having populations larger than 100000.
www.hackerrank.com
문제
Query a count of the number of cities in CITY having a Population larger than .
Input Format
The CITY table is described as follows:
![](https://blog.kakaocdn.net/dn/Iok7O/btsrExctwMI/SbPl2aZL0L35vgfKd8EDT0/img.jpg)
Code
SELECT COUNT(*)
FROM CITY
WHERE POPULATION > 100000;
728x90
반응형
'SQL > MySQL' 카테고리의 다른 글
[MySQL/HackerRank] Revising Aggregations - Averages (0) | 2023.08.21 |
---|---|
[MySQL/HackerRank] Revising Aggregations - The Sum Function (0) | 2023.08.21 |
[MySQL/HackerRank] The PADS (0) | 2023.08.21 |
[MySQL/HackerRank] Type of Triangle (0) | 2023.08.18 |
[MySQL/HackerRank] Employee Salaries (0) | 2023.08.18 |