Les Isaacs
Registered User.
- Local time
- Today, 10:30
- Joined
- May 6, 2008
- Messages
- 186
Hello All
I have a table [x confirmed], and two of its fields are 'staff_name' (text)and 'fulltime' (Yes/No). There are many records in the table for each 'staff_name' value: generally a given 'staff_name' value will always have the same 'fulltime' value, but I need a query that will return ALL the records for any 'staff_name' value where this is NOT the case. So those 'staff_name' values that always have a 'fulltime' value of 'True' (or always 'False') should be EXCLUDED from the query, but any 'staff_name' values that have one or more records with a 'fulltime' value of 'True' AND one or more records with a 'fulltime' values of 'False' should be returned by the query.
I thought I could do this with a subquery, but can't seem to get it right
Hope someone can help.
Thanks in advance
Les
I have a table [x confirmed], and two of its fields are 'staff_name' (text)and 'fulltime' (Yes/No). There are many records in the table for each 'staff_name' value: generally a given 'staff_name' value will always have the same 'fulltime' value, but I need a query that will return ALL the records for any 'staff_name' value where this is NOT the case. So those 'staff_name' values that always have a 'fulltime' value of 'True' (or always 'False') should be EXCLUDED from the query, but any 'staff_name' values that have one or more records with a 'fulltime' value of 'True' AND one or more records with a 'fulltime' values of 'False' should be returned by the query.
I thought I could do this with a subquery, but can't seem to get it right
Hope someone can help.
Thanks in advance
Les