Revising Aggregations - The Count Function

Sort by

recency

|

484 Discussions

|

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

    For MySQL

    SELECT COUNT(*) FROM city
    WHERE population > 100000;
    
  • + 0 comments

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

  • + 0 comments

    For MySQL:

    SELECT Count(ID) FROM CITY WHERE POPULATION >100000;