It does not appear that HQL supports the MINUS operator
What you want to do can be done with a LEFT JOIN or NOT EXISTS:
SELECT x
FROM abc
LEFT JOIN bcd
ON abc.x = bcd.x
WHERE bcd.x IS NULL
EDIT: Per comments below, NOT EXISTS is not supported.
SELECT x
FROM abc
WHERE NOT EXISTS (SELECT x FROM bcd)
Comments
Post a Comment