Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Find Specific Books for a Reader | Filtering 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: Find Specific Books for a Reader

A patron asks for books from the Science Fiction genre that were published after 2010. You want to ensure the list contains only books that meet both conditions.

Opgave

Swipe to start coding

Write an SQL query to fetch the titles and authors of all the books where the genre is "Science Fiction" and the publication_year is greater than 2010.

The books table includes these columns: id, title, author, genre, and publication_year.

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 2. Kapitel 9
toggle bottom row

book
Challenge: Find Specific Books for a Reader

A patron asks for books from the Science Fiction genre that were published after 2010. You want to ensure the list contains only books that meet both conditions.

Opgave

Swipe to start coding

Write an SQL query to fetch the titles and authors of all the books where the genre is "Science Fiction" and the publication_year is greater than 2010.

The books table includes these columns: id, title, author, genre, and publication_year.

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 2. Kapitel 9
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