I have two tables as shown below
EmpMaster
empid firstName lastName lstatus
1 Mark Rowen 1
2 John Griffin 1
3 Derick Rose 1
EmpPers
----------
empPersSeq empID perTypeID PersTypeValue
1 1 1 Good
2 1 2 Fair
3 1 3 Good
4 2 1 Fair
5 2 2 Fair
6 2 2 Fair
How do get list of all EmpIds from empMaster that doesnt have perTypeID=3 records in EmpPers Table?
Thanks in advance
I believe a NOT EXISTS would do the trick: