RienSQL
TASK #97 · Medium · Samokat

Operating warehouses by city

Your brief
Calculate the number of operating warehouses as of the current date for each city. Display only those cities that have more than 80 warehouses. The output data is the city, the number of warehouses.
Expected columnscity warehouse_countSamokat
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
Warehouseswarehouse_id, name, city, date_open, date_close