Hi,

I can't find out how I have to create a Criteria which executes the 
following query:

SELECT *
FROM EMPLOYEE e
WHERE NOT EXISTS (SELECT *
                                   FROM  DEPENDENT d
                                   WHERE e.PERSON_ID = d.PERSON_ID)

or in words:

I want all Employee Records where no Dependent record exists pointing to 
the Employee Record.

Can someone help me?

thanks,
Maarten

--
Maarten Coene
Katholieke Universiteit Leuven
Dept. Computerwetenschappen             Tel: ++32 (0)16/32 78 25
Celestijnenlaan 200A
B-3001 Heverlee


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to