SQL statement that omits records
468183Feb 16 2006 — edited Mar 9 2006Hi, I have created a Record Group in forms but I am having some problems with the SQL to populate it.
I have a column Surname in a table 'Staff'. My record group reads in the names from this column. I also have a table 'Holiday' which has a foreign key of staff_id.
What I want is to write an SQL query for the record group that will list the staff surnames from table 'Staff' but leave out those surnames that have their staff_id in table 'Holiday'.
I can't get my head around how to do it. Any help would be greatly appreciated.
Kevin