Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Filter Employees by Department Size | Nested Subqueries in the WHERE section
Practice
Projects
Quizzes & Challenges
Quizze
Challenges
/
Generate Nested Subqueries in SQL
Abschnitt 1. Kapitel 2
single

single

bookChallenge: Filter Employees by Department Size

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt