You are viewing a single comment's thread. Return to all comments →
MySQL:
select sum(population) from city where district = 'California'
or
select sum(case when district = 'California' then population else 0 end) from city
Seems like cookies are disabled on this browser, please enable them to open this website
Revising Aggregations - The Sum Function
You are viewing a single comment's thread. Return to all comments →
MySQL:
or