I have two database tables designed identically - they each contain fields: saleref, tradname, sale, profit and are called 1 and 2.
I want to return the values of tradname from table 2 where those values are not already in table 1.
I have written this query:
(Select tradname from 2)
except
(Select tradname from 1);
and keep being told there is a syntax error in it. But I copied this directly from a databases book!!
Could someone please tell me how to do this.
Thanks,
Stuart
I want to return the values of tradname from table 2 where those values are not already in table 1.
I have written this query:
(Select tradname from 2)
except
(Select tradname from 1);
and keep being told there is a syntax error in it. But I copied this directly from a databases book!!
Could someone please tell me how to do this.
Thanks,
Stuart