Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Matching Multiple Options | Filtering Data
Introduction to SQL

Swipe to show menu

book
Challenge: Matching Multiple Options

A patron wants to explore either Mystery or Thriller books but isn't sure which one they prefer. Your job is to find all books that belong to either of these genres.

Task

Swipe to start coding

Write an SQL query to fetch the titles of all the books where the genre is "Mystery" or "Thriller".

The books table includes these columns: id, title, author, genre, and publication_year.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 13
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 1.72

book
Challenge: Matching Multiple Options

A patron wants to explore either Mystery or Thriller books but isn't sure which one they prefer. Your job is to find all books that belong to either of these genres.

Task

Swipe to start coding

Write an SQL query to fetch the titles of all the books where the genre is "Mystery" or "Thriller".

The books table includes these columns: id, title, author, genre, and publication_year.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 1.72

Swipe to show menu

some-alt