Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Employees Not in Any Project | Nested Subqueries in the WHERE section
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
Generate Nested Subqueries in SQL
Секція 1. Розділ 7
single

single

bookChallenge: Employees Not in Any Project

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Write a SQL query to list all employees who are not assigned to any project. Use a nested subquery with NOT IN to filter out employees who appear in the employee_projects table.

  • Select the employee_id, first_name, and last_name columns from the employees table.
  • Use a nested subquery in the WHERE clause to identify employee_id values that are present in the employee_projects table.
  • Exclude those employees from the results using NOT IN.
  • The query must return only those employees who are not assigned to any project.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 7
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt