Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Employees Not in Any Project | Nested Subqueries in the WHERE section
Generate Nested Subqueries in SQL
Osio 1. Luku 7
single

single

bookChallenge: Employees Not in Any Project

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 7
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt