Revising Aggregations - The Count Function

Sort by

recency

|

501 Discussions

|

  • + 0 comments

    select count(*) from city where population>100000;

  • + 0 comments
    SELECT COUNT(*)
    FROM CITY
    WHERE POPULATION > 100000;
    
  • + 0 comments

    SELECT COUNT(NAME) FROM ( SELECT NAME FROM CITY WHERE POPULATION > 100000 ) AS A

  • + 0 comments

    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

  • + 0 comments

    SELECT COUNT(NAME) FROM CITY WHERE POPULATION > 100000