Contenido del Curso
Introducción a SQL
Introducción a SQL
Comprobación de un Rango de Valores
Para verificar un rango de valores, debemos usar el operador BETWEEN
. Este operador requiere dos valores: el valor-inicial y el valor-final del rango. Además, la palabra clave AND
debe colocarse entre estos valores.
Veamos un ejemplo:
SELECT name, population FROM country WHERE population BETWEEN 100000 AND 3000000;
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query that returns the name
, capital
, and population
columns from the country
table (please retrieve these columns in this order), for all countries with a population
between 6000000 and 80000000. Then sort the result by capital
from A to Z.
¡Gracias por tus comentarios!
Comprobación de un Rango de Valores
Para verificar un rango de valores, debemos usar el operador BETWEEN
. Este operador requiere dos valores: el valor-inicial y el valor-final del rango. Además, la palabra clave AND
debe colocarse entre estos valores.
Veamos un ejemplo:
SELECT name, population FROM country WHERE population BETWEEN 100000 AND 3000000;
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query that returns the name
, capital
, and population
columns from the country
table (please retrieve these columns in this order), for all countries with a population
between 6000000 and 80000000. Then sort the result by capital
from A to Z.
¡Gracias por tus comentarios!
Comprobación de un Rango de Valores
Para verificar un rango de valores, debemos usar el operador BETWEEN
. Este operador requiere dos valores: el valor-inicial y el valor-final del rango. Además, la palabra clave AND
debe colocarse entre estos valores.
Veamos un ejemplo:
SELECT name, population FROM country WHERE population BETWEEN 100000 AND 3000000;
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query that returns the name
, capital
, and population
columns from the country
table (please retrieve these columns in this order), for all countries with a population
between 6000000 and 80000000. Then sort the result by capital
from A to Z.
¡Gracias por tus comentarios!
Para verificar un rango de valores, debemos usar el operador BETWEEN
. Este operador requiere dos valores: el valor-inicial y el valor-final del rango. Además, la palabra clave AND
debe colocarse entre estos valores.
Veamos un ejemplo:
SELECT name, population FROM country WHERE population BETWEEN 100000 AND 3000000;
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query that returns the name
, capital
, and population
columns from the country
table (please retrieve these columns in this order), for all countries with a population
between 6000000 and 80000000. Then sort the result by capital
from A to Z.