I have two tables - table1 and table2 - with the same columns in two different schema.
Table1
col1 | col2 | col3
-----+------+------
a1 | b1 | c1
a2 | b2 | c2
and table2
col1 | col2 | col3
-----+------+------
a1 | b1 | c1
a2 | b2 | c2
How to query from both tables (schema1.table1 and schema2.table2) so that I get the result as:
col1 | col2 | col3
-----+------+------
a1 | b1 | c1
a2 | b2 | c2
a1 | b1 | c1
a2 | b2 | c2