Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Employees Without Projects | Advanced Join Techniques and Multi-Table Queries
SQL Joins in Depth
Osio 2. Luku 7
single

single

bookChallenge: Employees Without Projects

Pyyhkäise näyttääksesi valikon

Tehtävä

Pyyhkäise aloittaaksesi koodauksen

Write a SQL query to list all employees who are not assigned to any project.

  • Use the employees and assignments tables.
  • Select employee_id and name from the employees table.
  • Use a LEFT JOIN on employee_id to include all employees regardless of whether they have an assignment.
  • Filter results using WHERE a.assignment_id IS NULL to keep only employees with no matching row in assignments.

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 2. Luku 7
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

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

some-alt