Зміст курсу
Introduction to SQL
Introduction to SQL
Challenge: Find Specific Books for a Reader
A patron asks for books from the Science Fiction genre that were published after 2010. You want to ensure the list contains only books that meet both conditions.
Swipe to show code editor
Write an SQL query to fetch the titles and authors of all the books where the genre
is "Science Fiction" and the publication_year
is greater than 2010
.
The books
table includes these columns: id
, title
, author
, genre
, and publication_year
.
Рішення
Дякуємо за ваш відгук!
Challenge: Find Specific Books for a Reader
A patron asks for books from the Science Fiction genre that were published after 2010. You want to ensure the list contains only books that meet both conditions.
Swipe to show code editor
Write an SQL query to fetch the titles and authors of all the books where the genre
is "Science Fiction" and the publication_year
is greater than 2010
.
The books
table includes these columns: id
, title
, author
, genre
, and publication_year
.
Рішення
Дякуємо за ваш відгук!