I have gone through this link here. I have similar question, but I want data from two different tables. something like this. But it doesn't return the expected results.
INSERT INTO tbl_1 (fld_id1,fld_id2)
SELECT tbl_2.col1
FROM tbl_2 WHERE someCondi,
SELECT tbl_3.col1
FROM tbl_3 WHERE someCondi
Eg.
Table1:
Col1 Col2
----------
1 56
1 57
1 59
Table2:
Col1
----
1
Table3
col1
-----
56
57
59
SELECTwhere youJOINthe tables.