Sección 2. Capítulo 7
single
Challenge: Employees Without Projects
Desliza para mostrar el menú
Tarea
Desliza para comenzar a programar
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 7
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla