Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende The WHERE Clause Operators | Section
/
SQL Fundamentals
Sección 1. Capítulo 22
single

single

bookThe WHERE Clause Operators

Desliza para mostrar el menú

SQL supports a lot of conditional statements.

Less Than

Let's look at the examples:
This example lists all countries that have a population of less than 2424200:

123
SELECT name, population FROM country WHERE population < 2424200;
copy

Less Than or Equal to

The following example retrieves all countries with a population less than or equal to 2424200:

123
SELECT name, population FROM country WHERE population <= 2424200;
copy

Not Equal

The following example retrieves all non-Asian countries:

123
SELECT name, continent FROM country WHERE continent<>'Asia';
copy
Tarea

Swipe to start coding

Write an SQL query to retrieve the name, population, region, and capital columns from the country table. Return only the countries where the region is Southern Europe. Make sure to select the columns in the order specified: name, population, region, capital.

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 1. Capítulo 22
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt