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

Swipe to show menu

book
Challenge: Excluding A Range

As a librarian, you received a request to make a list of all the books that were published either before 1990 or after 2015 (both inclusive).

Task

Swipe to start coding

Write a query to fetch the titles and publication dates of all the books that match the conditions.

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Β 14
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

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

book
Challenge: Excluding A Range

As a librarian, you received a request to make a list of all the books that were published either before 1990 or after 2015 (both inclusive).

Task

Swipe to start coding

Write a query to fetch the titles and publication dates of all the books that match the conditions.

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