Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Desafío para Empleados del Departamento No Tecnológico | Subconsultas Anidadas
SQL Intermedio
course content

Contenido del Curso

SQL Intermedio

SQL Intermedio

1. Agrupamiento
2. Subconsultas Anidadas
3. Uniendo Tablas
4. DDL y DML en SQL

book
Desafío para Empleados del Departamento No Tecnológico

In this chapter, you will work with the employees and department tables.

Tarea
test

Swipe to show code editor

Your task is to retrieve the first name, last name, and salary of those employees who work in non-technical departments.

To do this, use an inner query where you write the filtering using a WHERE clause.

You also need to sort the results by salary, from highest to lowest. Use the ORDER BY clause to accomplish this subtask.

Brief Instructions

  • Retrieve the first_name, last_name, and salary columns from the employees table.
  • In the WHERE clause, use a nested query with the syntax WHERE department IN.
  • In the nested query, select the name column from the department table.
  • In the nested query, use the WHERE clause to set type = 'non-tech'.
  • Sort the results by salary in descending order.

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

book
Desafío para Empleados del Departamento No Tecnológico

In this chapter, you will work with the employees and department tables.

Tarea
test

Swipe to show code editor

Your task is to retrieve the first name, last name, and salary of those employees who work in non-technical departments.

To do this, use an inner query where you write the filtering using a WHERE clause.

You also need to sort the results by salary, from highest to lowest. Use the ORDER BY clause to accomplish this subtask.

Brief Instructions

  • Retrieve the first_name, last_name, and salary columns from the employees table.
  • In the WHERE clause, use a nested query with the syntax WHERE department IN.
  • In the nested query, select the name column from the department table.
  • In the nested query, use the WHERE clause to set type = 'non-tech'.
  • Sort the results by salary in descending order.

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 2
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