Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Mark Archived Books As Unavailable | Updating & Deleting Data
Introduction to SQL
course content

Contenuti del Corso

Introduction to SQL

Introduction to SQL

1. Getting Started
3. Sorting Data
4. Populating a Database
5. Updating & Deleting Data

book
Challenge: Mark Archived Books As Unavailable

As you were going through the book records, you noticed that several older books are still marked as available, even though they are reserved for archival purposes. You need to update the is_available column to FALSE for all books that are:

  • Published before the year 1950;
  • Belong to the Historical Fiction or Classic genres.
Compito

Swipe to start coding

Your task is to write an UPDATE statement to modify multiple rows in the books table based on these conditions.

Note

The rows that are to be modified must match both of the conditions.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 5. Capitolo 4
toggle bottom row

book
Challenge: Mark Archived Books As Unavailable

As you were going through the book records, you noticed that several older books are still marked as available, even though they are reserved for archival purposes. You need to update the is_available column to FALSE for all books that are:

  • Published before the year 1950;
  • Belong to the Historical Fiction or Classic genres.
Compito

Swipe to start coding

Your task is to write an UPDATE statement to modify multiple rows in the books table based on these conditions.

Note

The rows that are to be modified must match both of the conditions.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 5. Capitolo 4
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt