Revising Aggregations - The Sum Function

Sort by

recency

|

478 Discussions

|

  • + 0 comments

    SELECT SUM(population) FROM city WHERE district = "california" ;
    spaces also do matter so in quotes always write exact name

  • + 0 comments

    select sum(population) "Total Population" from city where district='California';

  • + 0 comments

    SELECT SUM(POPULATION) FROM CITY WHERE DISTRICT="California";

  • + 0 comments

    IS THIS CODE IS CORRECT

    SELECT SUM(POPULATION) FROM CITY WHERE DISTRICT = 'CALIFORNIA';

    I am doing with oracle so why not code working any expert can kindly answer me why

  • + 0 comments

    Query the total population of all cities in CITY where District is California.