Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Multiple Conditions | Filtering Data
Introduction to SQL
course content

Kurssisisältö

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.

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 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.

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 11
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt