Зміст курсу
Introduction to SQL
Introduction to SQL
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.
Swipe to show code editor
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
.
Рішення
Дякуємо за ваш відгук!
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.
Swipe to show code editor
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
.
Рішення
Дякуємо за ваш відгук!