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

bookChallenge: Aggregate Monthly Sales

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 2
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me an example?

close

bookChallenge: Aggregate Monthly Sales

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 2
single

single

some-alt