Section 2. Chapitre 7
single
Challenge: Employees Without Projects
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 7
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion