Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Monthly Order Summary | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL
Sectionย 1. Chapterย 11
single

single

bookChallenge: Monthly Order Summary

Swipe to show menu

Task

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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Sectionย 1. Chapterย 11
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt