Revising Aggregations - The Sum Function

Sort by

recency

|

455 Discussions

|

  • + 0 comments

    SELECT SUM(POPULATION) AS total_population from CITY WHERE DISTRICT = 'California';

  • + 0 comments

    mysql:

    select sum(population) from city where district = 'California';
    -- like
    select sum(population) from city where district like 'California';
    
  • + 0 comments

    select SUM(population) from CITY where District = 'California';

  • + 0 comments
    SELECT SUM(POPULATION) FROM CITY WHERE DISTRICT='CALIFORNIA';
    
  • + 0 comments

    SELECT sum(population) FROM city WHERE District = 'California';