Table 1 and 2 are filled up with numbers
Table 3 is empty
Each table has 5 columns of integers
To create each table I just did this for each table :
CREATE table1 (col1 int, col2 int, col3 int, col4 int, col5 int);
What I need to have:
If between table 1 and 2, the second column has the
same number then I should copy the whole line (from column 1 to 5) into table 3.
Sorry i copy pasted the wrong script, i had duplicated results at first so I changed it for :
SELECT * FROM table1
WHERE table1.col2 = table2.col2
ORDER BY col2;
but then How do I transfer this to table 3?...

