I have two tables table1 and table2 with some data and the id of table 1 and table 2 both are the foreign keys in table3.
How can I write a SQL statement to insert the data from table1 and table2 into table3? 
I have data in table1 and table2 but no data in table3 - I have to populate that using the other two.
 
     
    