I have a table which has tasks. Each job can have one or more tasks.
One task number 33 has a complimenting task 34.
I want to find all jobs that have a task 33 but not an accompanying task 34.
Job task
1234 33
1234 34
4567 33
7837 33
7837 34
7829 33
I want to see results like so which do not have a 34.
4567
7829
here is my sql which returns the same number of records with the 34 part or without it.
TIA
DougP
< I love mine
One task number 33 has a complimenting task 34.
I want to find all jobs that have a task 33 but not an accompanying task 34.
Job task
1234 33
1234 34
4567 33
7837 33
7837 34
7829 33
I want to see results like so which do not have a 34.
4567
7829
here is my sql which returns the same number of records with the 34 part or without it.
Code:
SELECT ProjectTrackingItems.[Project Number], ProjectTrackingItems.[Tracking CodeNumber]
FROM ProjectTrackingItems
WHERE (((ProjectTrackingItems.[Tracking CodeNumber])=33 And (ProjectTrackingItems.[Tracking CodeNumber])<>34));
TIA
DougP
![[r2d2] [r2d2] [r2d2]](/data/assets/smilies/r2d2.gif)