Hi,
I have a table with about 4000 records in it, i need to pull out some specific data but i am struggling. Here are the fields:
Client_Number (Primary Key)
Nf_Items
DONE
TSM (this is a name of a person)
I have this query so far.....
SELECT *
FROM tbl_Xtra_MED INNER JOIN tbl_Inst_Posn
ON tbl_Xtra_MED.Client_Number = tbl_Inst_Posn.Client_Number
WHERE tbl_Inst_Posn.Client_Number NOT IN(SELECT Client_Number FROM tbl_Inst_Posn WHERE TSM <> 'Wallace, Andrew' AND Nf_Items < 5)
Order By tbl_Inst_Posn.TSM DESC
Although this produces a nice list of people and the no_of items done. It does not seem to filter out records that have a TSM value of 'Wallace, Andrew' and less the 5 items.
Can anyone shed any light on this matter????
Regards
Andrew Fenner
I have a table with about 4000 records in it, i need to pull out some specific data but i am struggling. Here are the fields:
Client_Number (Primary Key)
Nf_Items
DONE
TSM (this is a name of a person)
I have this query so far.....
SELECT *
FROM tbl_Xtra_MED INNER JOIN tbl_Inst_Posn
ON tbl_Xtra_MED.Client_Number = tbl_Inst_Posn.Client_Number
WHERE tbl_Inst_Posn.Client_Number NOT IN(SELECT Client_Number FROM tbl_Inst_Posn WHERE TSM <> 'Wallace, Andrew' AND Nf_Items < 5)
Order By tbl_Inst_Posn.TSM DESC
Although this produces a nice list of people and the no_of items done. It does not seem to filter out records that have a TSM value of 'Wallace, Andrew' and less the 5 items.
Can anyone shed any light on this matter????
Regards
Andrew Fenner