Osio 1. Luku 7
single
Challenge: 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, andlast_namecolumns from theemployeestable. - Use a nested subquery in the
WHEREclause to identifyemployee_idvalues that are present in theemployee_projectstable. - Exclude those employees from the results using
NOT IN. - The query must return only those employees who are not assigned to any project.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 7
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme