I have a small query, and a union to put another small query next to it. However, the union has a syntax error in it.
Select <column1>
,<column2>
,<column3>
From <Table1>
<Some joins in there>
where <conditions>
order by <column2>
union
select <column2>
,<column3>
,<column4>
from <Table2>
<Some more joins here>
where <conditions>
order by <column2>
This is the Error I receive
ERROR: Syntax error at or near 'union'