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

Contenido del Curso

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.

Tarea
test

Swipe to show code editor

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 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.

Tarea
test

Swipe to show code editor

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 11
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt