Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Desafio para os Funcionários do Departamento Não-Técnico | Subconsultas Aninhadas
SQL Intermediário
Seção 2. Capítulo 2
single

single

bookDesafio para os Funcionários do Departamento Não-Técnico

Deslize para mostrar o menu

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

Tarefa

Deslize para começar a programar

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt