Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Find Specific Books for a Reader | Filtering Data
Introduction to SQL

Swipe to show menu

book
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.

Task

Swipe to start coding

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.

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Β 9

Ask AI

expand
ChatGPT

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

book
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.

Task

Swipe to start coding

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.

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Β 9
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt