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

In the book sale, an academic researcher needs books on History that were published between 1990 and 2010, but only if they are priced at $30 or less. Compile a list that meets all these criteria.

Opgave

Swipe to start coding

Write an SQL query to fetch the titles of all books where:

  • The genre is "Historical";
  • The publication_year is greater than or equal to 1990 and less than or equal to 2010;
  • The price is less than or equal to 30;

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

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

book
Challenge: Multiple Conditions

In the book sale, an academic researcher needs books on History that were published between 1990 and 2010, but only if they are priced at $30 or less. Compile a list that meets all these criteria.

Opgave

Swipe to start coding

Write an SQL query to fetch the titles of all books where:

  • The genre is "Historical";
  • The publication_year is greater than or equal to 1990 and less than or equal to 2010;
  • The price is less than or equal to 30;

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

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