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

Cursusinhoud

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

Swipe to start coding

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

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 5. Hoofdstuk 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.
Taak

Swipe to start coding

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

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 5. Hoofdstuk 6
Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt