Hi,
I'm trying to work out a way to find the following info from a table called TRAINING:
EMP_REF COURSE_REF
1 1
1 2
1 3
1 4
2 1
2 2
2 3 etc
From this data I need to find which employees have taken a course, and which ones haven't.
First is obviously easy
select EMP_REF from TRAINING where COURSE_REF=1
Finding out which employees haven't done a certain course im finding a little tricky.
Ive tried
select EMP_REF from TRAINING where COURSE_REF!=1
but obviously because each employee does many courses this returns all the other courses so that wont work.
Ive tried a few other ways but cant get my head around it!!
Any help or suggestions would be great.
Im using BCB6.0 and IBX 6.08 and Firebird 1.5
TIA,
Kris
I'm trying to work out a way to find the following info from a table called TRAINING:
EMP_REF COURSE_REF
1 1
1 2
1 3
1 4
2 1
2 2
2 3 etc
From this data I need to find which employees have taken a course, and which ones haven't.
First is obviously easy
select EMP_REF from TRAINING where COURSE_REF=1
Finding out which employees haven't done a certain course im finding a little tricky.
Ive tried
select EMP_REF from TRAINING where COURSE_REF!=1
but obviously because each employee does many courses this returns all the other courses so that wont work.
Ive tried a few other ways but cant get my head around it!!
Any help or suggestions would be great.
Im using BCB6.0 and IBX 6.08 and Firebird 1.5
TIA,
Kris