Challenge: Aggregate Monthly Sales
Compito
Swipe to start coding
Write a SQL query to calculate the total sales amount for each month using the transactions table. The query should group results by month and only include transactions where the category is 'Sales'.
- Use the
transactionstable. - Group the results by month using the
transaction_datecolumn. - Only include rows where
categoryis'Sales'. - Calculate the total sales amount for each month.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 4.55
Challenge: Aggregate Monthly Sales
Scorri per mostrare il menu
Compito
Swipe to start coding
Write a SQL query to calculate the total sales amount for each month using the transactions table. The query should group results by month and only include transactions where the category is 'Sales'.
- Use the
transactionstable. - Group the results by month using the
transaction_datecolumn. - Only include rows where
categoryis'Sales'. - Calculate the total sales amount for each month.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 2
single