Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Deleting Outdated Records | Updating & Deleting Data
Introduction to SQL
course content

Kursinnehåll

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.
Uppgift

Swipe to start coding

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

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 5. Kapitel 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.
Uppgift

Swipe to start coding

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

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 5. Kapitel 6
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt