Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn The Best Genre | Ordering Data
Practice SQL with Cinema Database

Swipe to show menu

book
The Best Genre

Task

Swipe to start coding

You have to return two records:

  • first one contains the most popular genre according to the sales
  • second one contains the best genre according to the rating

To evaluate these metrics, use total sales and average rating respectively. Name the column genre.

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Β 2. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

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

close

Awesome!

Completion rate improved to 4.55

book
The Best Genre

Task

Swipe to start coding

You have to return two records:

  • first one contains the most popular genre according to the sales
  • second one contains the best genre according to the rating

To evaluate these metrics, use total sales and average rating respectively. Name the column genre.

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!

close

Awesome!

Completion rate improved to 4.55

Swipe to show menu

some-alt