Seksjon 2. Kapittel 7
single
Challenge: Employees Without Projects
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
Write a SQL query to list all employees who are not assigned to any project.
- Use the
employeesandassignmentstables. - Select
employee_idandnamefrom theemployeestable. - Use a
LEFT JOINonemployee_idto include all employees regardless of whether they have an assignment. - Filter results using
WHERE a.assignment_id IS NULLto keep only employees with no matching row inassignments.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 7
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår