Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Genre-Specific Movie Selection | Conditional Filtering and Sorting with CASE WHEN
Practice
Projects
Quizzes & Challenges
Quizze
Challenges
/
Mastering CASE WHEN in SQL

bookChallenge: Genre-Specific Movie Selection

Aufgabe

Swipe to start coding

Write a query to select all columns from the movies table, but only include rows that meet the following genre-specific criteria:

  • If the genre is 'Action', the rating must be greater than or equal to 7.
  • If the genre is 'Comedy', the rating must be greater than or equal to 6.
  • For all other genres, the rating must be greater than or equal to 8.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 2
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

bookChallenge: Genre-Specific Movie Selection

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Write a query to select all columns from the movies table, but only include rows that meet the following genre-specific criteria:

  • If the genre is 'Action', the rating must be greater than or equal to 7.
  • If the genre is 'Comedy', the rating must be greater than or equal to 6.
  • For all other genres, the rating must be greater than or equal to 8.

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!

Abschnitt 3. Kapitel 2
single

single

some-alt