We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Revising Aggregations - The Count Function
Revising Aggregations - The Count Function
Sort by
recency
|
526 Discussions
|
Please Login in order to post a comment
SELECT count(Countrycode) FROM City where population>100000;
Easy solution
select count( distinct id) from city where population>100000;
Straightforward and practical SQL problem. Querying the count of cities with a population greater than a given value is a great way to practice using COUNT() with WHERE conditions. Khelo24bit Login
SELECT count(name) FROM CITY WHERE POPULATION > 100000;