Click here to Skip to main content
15,564,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to find unassigned worker on a specific date?

table: Worker {id (int) Name(varchar) }

table: Work_Assignments {wrkdate(Date),Worker_id (int),Work_id (int)}
Posted
Comments
Richard MacCutchan 4-Mar-14 4:27am    
You will need to provide far more detail than that. Please edit your question and explain the problem clearly.

1 solution

SQL
SELECT w.name FROM worker w
WHERE NOT EXISTS
(
SELECT * FROM work_assignments wa WHERE wa.worker_id = w.id
  AND wa.wrkdate = '2013/1/1'
)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900