How do I do an EXCEPT clause (like SQL) in Hive QL
EXCEPT
I have 2 tables, and each table is a column of unique ids.
I want to find the list of ids tha
I don't think there's any built-in way to do this but a LEFT OUTER JOIN should do the trick.
LEFT OUTER JOIN
This selects all Ids from table1 that do not exist in table2:
table1
table2
SELECT t1.id FROM table1 t1 LEFT OUTER JOIN table2 t2 ON (t1.id=t2.id) WHERE t2.id IS NULL;