Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Deleting Outdated Records | Updating & Deleting 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: Deleting Outdated Records

Recently, the library donated some of its antique books to a charity organization to make space for new collections. However, the records of these books are still present in the database, which needs to be cleaned up.

These books meet the following criteria:

  • They were published before the year 1900;
  • They are marked as unavailable (is_available = FALSE) since they are no longer in the library's possession.
Task
test

Swipe to show code editor

Your task is to write a DELETE statement to remove these outdated records from the books table.

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 5. Chapter 6
toggle bottom row

book
Challenge: Deleting Outdated Records

Recently, the library donated some of its antique books to a charity organization to make space for new collections. However, the records of these books are still present in the database, which needs to be cleaned up.

These books meet the following criteria:

  • They were published before the year 1900;
  • They are marked as unavailable (is_available = FALSE) since they are no longer in the library's possession.
Task
test

Swipe to show code editor

Your task is to write a DELETE statement to remove these outdated records from the books table.

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 5. Chapter 6
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