Resumen de la lección · Video de 8 min
Project: a monthly sales report query for the online shop
Picture the first Monday of the month. Your manager asks for last month's sales: how many orders, how much revenue, and the average order size. You export the orders, paste them into Excel, look up every product price, build a pivot table, and fix the dates that came in as text. An hour later you have a report, and next month you'll do it all again. What if that whole routine were one query you could run again whenever you like? That's today's project.
Ideas clave
- strftime turns dates into month labels
- JOIN, WHERE, GROUP BY, ORDER BY build the report
- A view saves it for every month to come
Abrir la lección completa Ver el curso
Preguntas y respuestas
What is Project: a monthly sales report query for the online shop about?
Picture the first Monday of the month. Your manager asks for last month's sales: how many orders, how much revenue, and the average order size. You export the orders, paste them into Excel, look up every product price, build a pivot table, and fix the dates that came in as text. An hour later you have a report, and next month you'll do it all again. What if that whole routine were one query you could run again whenever you like? That's today's project.
What are the key points of Project: a monthly sales report query for the online shop?
strftime turns dates into month labels. JOIN, WHERE, GROUP BY, ORDER BY build the report. A view saves it for every month to come.
How can I practise Project: a monthly sales report query for the online shop?
Watch the lesson, read it, then answer its quiz in the course "Practical SQL for Analysts".