select cust#, date , qty, sale_price, item#, brand
from t1
minus
select cust#, date , qty, sale_price, item#, brand from t2
or
select * from t1
minus
select * from t2
when the table has duplicate rows then:
select distinct cust#, date , qty, sale_price, item#, brand...
Try this:
Insert into tblname
(Select fld1a, fld1b, fld1c, :@value4)
From tblname2
valu4 may be taken as bind variable that is passed, and is constant for a transaction.
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.