Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Updating Page Counts | 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: Updating Page Counts

The library discovered that some books in their database have incorrect page counts due to a data entry error. Specifically, for books published before the year 2000, the page count was mistakenly recorded 10 pages fewer than the actual number of pages.

Opgave

Swipe to start coding

Your task is to fix this error by updating the pages column in the books table. Increase the page count by 10 for all books where published before the year 2000.

You can reference a column value in an UPDATE statement like this:

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 3
toggle bottom row

book
Challenge: Updating Page Counts

The library discovered that some books in their database have incorrect page counts due to a data entry error. Specifically, for books published before the year 2000, the page count was mistakenly recorded 10 pages fewer than the actual number of pages.

Opgave

Swipe to start coding

Your task is to fix this error by updating the pages column in the books table. Increase the page count by 10 for all books where published before the year 2000.

You can reference a column value in an UPDATE statement like this:

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 3
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