Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Monthly Order Summary | Date and Time Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Monthly Order Summary

Uppgift

Swipe to start coding

Write a query to count the number of orders placed in each month.

  • Group the orders by both year and month using the order_date column.
  • Count the total number of orders for each month.
  • Return the year, month, and corresponding order count for each group.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 5
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Monthly Order Summary

Svep för att visa menyn

Uppgift

Swipe to start coding

Write a query to count the number of orders placed in each month.

  • Group the orders by both year and month using the order_date column.
  • Count the total number of orders for each month.
  • Return the year, month, and corresponding order count for each group.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 5
single

single

some-alt