can we use the join operation to create a table on a Database (called DB1 in the example) based on two tables from Database another database (called DB2 in the example) ? If yes, then how to do ?
Both databases are on the same server and DBMS is the same. ID1 and ID2 based on table1 in DB2; ID1 and Name based on table2 in DB2
Here´s what I tried out already (but it´s not working)Made from point of view that I´m using DB1:
INSERT INTO table3 (ID1,ID2,Name)
SELECT ID1,ID2, DB2.table2
FROM DB2.table1;
LEFT JOIN DB2.table2
ON ID1=ID1;
Thanks for your help again!