Challenge: Aggregate Monthly Sales
Oppgave
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øsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 4.55
Challenge: Aggregate Monthly Sales
Sveip for å vise menyen
Oppgave
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øsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2
single