We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Revising Aggregations - The Sum Function
Revising Aggregations - The Sum Function
Sort by
recency
|
478 Discussions
|
Please Login in order to post a comment
SELECT SUM(population) FROM city WHERE district = "california" ;
spaces also do matter so in quotes always write exact name
select sum(population) "Total Population" from city where district='California';
SELECT SUM(POPULATION) FROM CITY WHERE DISTRICT="California";
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
Query the total population of all cities in CITY where District is California.