Challenge: Genre-Specific Movie Selection
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: Genre-Specific Movie Selection
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single