Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Retrieving Multiple Columns | Retrieving Data
TEST SQL COURSE E2E
course content

Contenido del Curso

TEST SQL COURSE E2E

TEST SQL COURSE E2E

1. Sorting Retrieved Data
2. Retrieving Data
3. Failing init script
4. Long execution init script

bookRetrieving Multiple Columns

Let's find out a little more about this database. A country database contains one table, named country. Let's look at this table.

This table has 15 rows. In other words, we have 15 different records for different countries.

What about columns? Here we have 7 columns, like id, name, continent, region, SurfaceArea, capital and population.

1. id - the record number of this table

2. name - the name of the country

3. continent - the name of the country's continent;

4. region- the name of the country's region

5. SurfaceArea - the surface area of the country

6. capital - the capital of the country

7. population - the population of the country.

We can also retrieve multiple columns with the SELECT operator. The only difference is that after the word SELECT, we will need to specify several column names, which must be separated by a comma. Let’s take an example where we retrieve three columns from the country table.

12
SELECT id, name, capital FROM country;
copy

Tarea

You have to retrieve the continent and population columns from the country table.

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

bookRetrieving Multiple Columns

Let's find out a little more about this database. A country database contains one table, named country. Let's look at this table.

This table has 15 rows. In other words, we have 15 different records for different countries.

What about columns? Here we have 7 columns, like id, name, continent, region, SurfaceArea, capital and population.

1. id - the record number of this table

2. name - the name of the country

3. continent - the name of the country's continent;

4. region- the name of the country's region

5. SurfaceArea - the surface area of the country

6. capital - the capital of the country

7. population - the population of the country.

We can also retrieve multiple columns with the SELECT operator. The only difference is that after the word SELECT, we will need to specify several column names, which must be separated by a comma. Let’s take an example where we retrieve three columns from the country table.

12
SELECT id, name, capital FROM country;
copy

Tarea

You have to retrieve the continent and population columns from the country table.

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

bookRetrieving Multiple Columns

Let's find out a little more about this database. A country database contains one table, named country. Let's look at this table.

This table has 15 rows. In other words, we have 15 different records for different countries.

What about columns? Here we have 7 columns, like id, name, continent, region, SurfaceArea, capital and population.

1. id - the record number of this table

2. name - the name of the country

3. continent - the name of the country's continent;

4. region- the name of the country's region

5. SurfaceArea - the surface area of the country

6. capital - the capital of the country

7. population - the population of the country.

We can also retrieve multiple columns with the SELECT operator. The only difference is that after the word SELECT, we will need to specify several column names, which must be separated by a comma. Let’s take an example where we retrieve three columns from the country table.

12
SELECT id, name, capital FROM country;
copy

Tarea

You have to retrieve the continent and population columns from the country table.

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!

Let's find out a little more about this database. A country database contains one table, named country. Let's look at this table.

This table has 15 rows. In other words, we have 15 different records for different countries.

What about columns? Here we have 7 columns, like id, name, continent, region, SurfaceArea, capital and population.

1. id - the record number of this table

2. name - the name of the country

3. continent - the name of the country's continent;

4. region- the name of the country's region

5. SurfaceArea - the surface area of the country

6. capital - the capital of the country

7. population - the population of the country.

We can also retrieve multiple columns with the SELECT operator. The only difference is that after the word SELECT, we will need to specify several column names, which must be separated by a comma. Let’s take an example where we retrieve three columns from the country table.

12
SELECT id, name, capital FROM country;
copy

Tarea

You have to retrieve the continent and population columns from the country table.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 2. Capítulo 2
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt