Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Genre-Specific Movie Selection | Conditional Filtering and Sorting with CASE WHEN
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
Mastering CASE WHEN in SQL

bookChallenge: Genre-Specific Movie Selection

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Genre-Specific Movie Selection

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 2
single

single

some-alt