Challenge: Aggregate Monthly Sales
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 4.55
Challenge: Aggregate Monthly Sales
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single