Desafío para Empleados del Departamento No Tecnológico
In this chapter, you will work with the employees
and department
tables.
Swipe to start coding
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
, andsalary
columns from theemployees
table. - In the
WHERE
clause, use a nested query with the syntaxWHERE department IN
. - In the nested query, select the
name
column from thedepartment
table. - In the nested query, use the
WHERE
clause to settype = 'non-tech'
. - Sort the results by
salary
in descending order.
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 4Awesome!
Completion rate improved to 4
Desafío para Empleados del Departamento No Tecnológico
In this chapter, you will work with the employees
and department
tables.
Swipe to start coding
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
, andsalary
columns from theemployees
table. - In the
WHERE
clause, use a nested query with the syntaxWHERE department IN
. - In the nested query, select the
name
column from thedepartment
table. - In the nested query, use the
WHERE
clause to settype = 'non-tech'
. - Sort the results by
salary
in descending order.
Solución
¡Gracias por tus comentarios!
single
Awesome!
Completion rate improved to 4
Desafío para Empleados del Departamento No Tecnológico
Desliza para mostrar el menú
In this chapter, you will work with the employees
and department
tables.
Swipe to start coding
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
, andsalary
columns from theemployees
table. - In the
WHERE
clause, use a nested query with the syntaxWHERE department IN
. - In the nested query, select the
name
column from thedepartment
table. - In the nested query, use the
WHERE
clause to settype = 'non-tech'
. - Sort the results by
salary
in descending order.
Solución
¡Gracias por tus comentarios!