Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Sorting the Library Catalogue | Sorting Data
Introduction to SQL
course content

Course Content

Introduction to SQL

Introduction to SQL

1. Getting Started
3. Sorting Data
4. Populating a Database
5. Updating & Deleting Data

book
Challenge: Sorting the Library Catalogue

While assisting people at your librarian post, someone approaches you, curious about books that have been published recently.

To help them, you decide to sort the books based on the publication year, such that the newest books are at the top.

Task
test

Swipe to show code editor

Your task is to write an SQL query to select title, author, publication_year and genre of all the books and display them sorted based on the publication_year column according to the customer's requirements.

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 3. Chapter 2
toggle bottom row

book
Challenge: Sorting the Library Catalogue

While assisting people at your librarian post, someone approaches you, curious about books that have been published recently.

To help them, you decide to sort the books based on the publication year, such that the newest books are at the top.

Task
test

Swipe to show code editor

Your task is to write an SQL query to select title, author, publication_year and genre of all the books and display them sorted based on the publication_year column according to the customer's requirements.

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 3. Chapter 2
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