Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Sales of Genres in Cities | Ordering Data
Practice SQL with Cinema Database

bookSales of Genres in Cities

Aufgabe

Swipe to start coding

Which genre gives the biggest income in each city? To solve it:

  • Calculate the total sales for each genre in each city: group records by city and genre.
  • Order the records by city lexicographically and then by total sales, starting with most selling genre.

Output data under columns city, genre, and sales.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 6
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

Awesome!

Completion rate improved to 4.55

bookSales of Genres in Cities

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Which genre gives the biggest income in each city? To solve it:

  • Calculate the total sales for each genre in each city: group records by city and genre.
  • Order the records by city lexicographically and then by total sales, starting with most selling genre.

Output data under columns city, genre, and sales.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

close

Awesome!

Completion rate improved to 4.55
Abschnitt 2. Kapitel 6
single

single

some-alt