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

Kursusindhold

Introduction to SQL

Introduction to SQL

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

book
Challenge: Correct Book's Data

The library staff discovered an error in the database for the books table. A recently added book has incorrect information, and you need to update it.

Specifically:

The book with book_id = 5 currently has the title 'The Greatest Gatsby'. However, the title was entered incorrectly, and it should be updated to 'The Great Gatsby'.

Additionally, this book's is_available status is incorrect and should be set to FALSE because it has been lent out.

Opgave

Swipe to start coding

Your task is to write an UPDATE statement to correct this information in the books table.

The syntax of the UPDATE statement is:

sql

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 5. Kapitel 2
toggle bottom row

book
Challenge: Correct Book's Data

The library staff discovered an error in the database for the books table. A recently added book has incorrect information, and you need to update it.

Specifically:

The book with book_id = 5 currently has the title 'The Greatest Gatsby'. However, the title was entered incorrectly, and it should be updated to 'The Great Gatsby'.

Additionally, this book's is_available status is incorrect and should be set to FALSE because it has been lent out.

Opgave

Swipe to start coding

Your task is to write an UPDATE statement to correct this information in the books table.

The syntax of the UPDATE statement is:

sql

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 5. Kapitel 2
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt