I need to select only those records of table1 that are not in table2.
In both table's there is a field called: order_id to determine this, but as a sql newbie i can't figure out how to do this.
Select order_id from Table1
minus
Select order_id from Table2;
if you want more fields, you may wish to make this a sub-query
Select * from table1 where order_id in
(Select order_id from Table1
minus
Select order_id from Table2) I tried to remain child-like, all I acheived was childish.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.