Revising Aggregations - The Count Function

Sort by

recency

|

526 Discussions

|

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

    SELECT count(Countrycode) FROM City where population>100000;

    Easy solution

  • + 0 comments

    select count( distinct id) from city where population>100000;

  • + 0 comments

    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

  • + 0 comments

    SELECT count(name) FROM CITY WHERE POPULATION > 100000;