I would like to combine/merge two select queries by COLUMN and not by rows as shown here with UNION.
Let`s say I have
SELECT attr1, attr2 FROM table1
and
SELECT attr1, attr2 FROM table2
Note, that both tables have the same Attribute Names.
And I want a result with following columns:
attr1_table1, attr2_table1, attr1_table2, attr2_table2
Edit (just for the next as the outer join worked fine):
My first Select Returns something like:
id attr1 attr2
1 3 5
2 4 6
and my second select
id attr1 attr2
1 7 9
2 8 10
And my desired result is:
id attr1 attr2 attr1 attr2
1 3 5 7 9
2 4 6 8 10
Thanks