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

Kursinnhold

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

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 desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 5. Kapittel 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.
Oppgave

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 desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 5. Kapittel 6
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt