Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Genre-Specific Movie Selection | Conditional Filtering and Sorting with CASE WHEN
Mastering CASE WHEN in SQL

bookChallenge: Genre-Specific Movie Selection

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 2
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Genre-Specific Movie Selection

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 2
single

single

some-alt