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

single

bookChallenge: Employees Without Projects

Swipe to show menu

Task

Swipe to start coding

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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 7
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt