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
|
501 Discussions
|
Please Login in order to post a comment
select count(*) from city where population>100000;
SELECT COUNT(NAME) FROM ( SELECT NAME FROM CITY WHERE POPULATION > 100000 ) AS A
The COUNT() function is fundamental in SQL for aggregation, especially when analyzing datasets to determine how many rows meet certain conditions. Revising aggregations using COUNT helps reinforce understanding of how data can be grouped and summarized efficiently. Tiger Exchange 247 Login Registration
SELECT COUNT(NAME) FROM CITY WHERE POPULATION > 100000