Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Filter Employees by Department Size | Nested Subqueries in the WHERE section
Generate Nested Subqueries in SQL
Seção 1. Capítulo 2
single

single

bookChallenge: Filter Employees by Department Size

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a SQL query to list all employees who work in departments that have more than 5 employees. Use a nested subquery in the WHERE clause to identify departments meeting this size requirement.

  • Select all columns from the employees table.
  • Use a nested subquery in the WHERE clause to find department_id values from the employees table that have more than 5 employees.
  • Return only employees whose department_id is in the set of departments with more than 5 employees.

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 1. 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