tony, mysql has neither EXCEPT nor MINUS
and versions prior to 4.1 don't even have subselects!!
here is another solution to this problem --
Code:
select table1.documentpackageid
from table1
left outer
join table2
on table1.documentpackageid
= table2.documentpackageid
and table2.yyy <> 10
where table1.xxx = 94
and table2.documentpackageid is null