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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -