Select region,sum(sales)
from store_information,geography
Group by region
Will give sales by geography. Now you can select required geography and saleAmount
Seems you need the sum for west
Select sum(sales)
from store_information
LEFT JOIN geography on geography.store_name = store_information.store_name
where region = 'West'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.