Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Aggregate Monthly Sales | Time-Series Aggregation
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Finance and Accounting

bookChallenge: 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 transactions table.
  • Group the results by month using the transaction_date column.
  • Only include rows where category is 'Sales'.
  • Calculate the total sales amount for each month.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: 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 transactions table.
  • Group the results by month using the transaction_date column.
  • Only include rows where category is 'Sales'.
  • Calculate the total sales amount for each month.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 2
single

single

some-alt