← All SQL interview questions

Warehouse stock summary

EasyAggregate FunctionsWalmartAmazon

Supply chain planners need a one-line health check per warehouse before the festive restock.

From warehouse_stock, return one row per warehouse_code with:

  • sku_count — number of SKUs stocked
  • total_units — total units on hand
  • avg_unit_price — average unit price rounded to 2 decimals
  • min_units and max_units — smallest and largest unit count for that warehouse

Sample data

Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.

Explore the program