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
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 13