sql - Compare data between two tables with in single database -
my requirement compare 2 table data in 1 database , stored uncommon data in separate table named relation data within same database.
how compare tables data?
to compare tools , can stored uncommon data in separately table using tool? forgot tell 1 thing 2 tables having same data different column names means example first table having 20 columns , 2 , table having 50 columns in 4 columns matched data different number of rows , different column names in each table.based on these columns data matching need find rows , stored table
try query, think work
insert relational(r1,r2,r3,....rn) (select s1,s2,s3,...sn information info info.informationcity not in (select customercity customer) , info.informationstate not in (select customerstate customer) )
Comments
Post a Comment