Challenge: Affordable Books
At the book sale, the library is also running a promotion to highlight recent affordable books. As a librarian your task is to create a list of the 20 cheapest books published after the year 2015 to showcase in the promotional section.
Swipe to start coding
Write an SQL query to retrieve the title
, author
, price
, and publication_year
of 20 cheapest books, sorted by their price in ascending order.
Donβt forget that these books need to have been published after 2015.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 1.72
Challenge: Affordable Books
Swipe to show menu
At the book sale, the library is also running a promotion to highlight recent affordable books. As a librarian your task is to create a list of the 20 cheapest books published after the year 2015 to showcase in the promotional section.
Swipe to start coding
Write an SQL query to retrieve the title
, author
, price
, and publication_year
of 20 cheapest books, sorted by their price in ascending order.
Donβt forget that these books need to have been published after 2015.
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 1.72single