Contenido del Curso
Introduction to SQL
Introduction to SQL
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
orClassic
genres.
Swipe to show code editor
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.
Solución
¡Gracias por tus comentarios!
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
orClassic
genres.
Swipe to show code editor
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.
Solución
¡Gracias por tus comentarios!