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

bookChallenge: Defining Ranges

In the Book Sale, there is a section for medium-priced books. It is supposed to contain books that cost more than $15 and less than $20. Your task is to make a list of all such books so they can be transferred to that section.

Task

Swipe to start coding

Write an SQL query which fetches the titles, authors and publication dates of all the books that fall in the price range of 15 to 20 dollars (inclusive of 15 and 20).

Note

Use the book_store table.

The book_store table includes these columns: id, title, author, genre, publication_year, and price.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 10
single

single

Ask AI

expand

Ask AI

ChatGPT

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

Suggested prompts:

Summarize this chapter

Explain the code in file

Explain why file doesn't solve the task

close

Awesome!

Completion rate improved to 1.72

bookChallenge: Defining Ranges

Swipe to show menu

In the Book Sale, there is a section for medium-priced books. It is supposed to contain books that cost more than $15 and less than $20. Your task is to make a list of all such books so they can be transferred to that section.

Task

Swipe to start coding

Write an SQL query which fetches the titles, authors and publication dates of all the books that fall in the price range of 15 to 20 dollars (inclusive of 15 and 20).

Note

Use the book_store table.

The book_store table includes these columns: id, title, author, genre, publication_year, and price.

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!

close

Awesome!

Completion rate improved to 1.72
SectionΒ 2. ChapterΒ 10
single

single

some-alt