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

Kurssisisältö

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.
Tehtävä

Swipe to start coding

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

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 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.
Tehtävä

Swipe to start coding

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

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 6
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt