Hi,
Can someone please tell me how to write the query for the following problem as I can't seem to get it right.
I have 2 tables, one named CourseComplete and one named Validation. Both contain the fields CourseKey and Staffno. I want to select all the records from coursecomplete where the coursekey and staffno combination are not in the Validation table.
I currently have:
SELECT * from coursecomplete
WHERE NOT EXISTS (select staffno, coursekey from validation)
but this doesn't work.
Thanks.
Can someone please tell me how to write the query for the following problem as I can't seem to get it right.
I have 2 tables, one named CourseComplete and one named Validation. Both contain the fields CourseKey and Staffno. I want to select all the records from coursecomplete where the coursekey and staffno combination are not in the Validation table.
I currently have:
SELECT * from coursecomplete
WHERE NOT EXISTS (select staffno, coursekey from validation)
but this doesn't work.
Thanks.