I am trying to create a new table new_table from t1 by comparing primary key values of another table t2
ie,
1) created table new_table
2) gave the query
insert into new_table select a.* from t1 as a join t2 as b on a.primary_key=b.primary_key.
but after the execution i got a message ( 0 rows affected )
please specify the reason for this.
Best Answer
I'd have to assume that no matching values exist in the tables' respective primary key columns.