SyntaxFix
Write A Post
Hire A Developer
Questions
The second table cannot include the table name in the ORDER BY clause.
ORDER BY
So...
SELECT table1.field1 FROM table1 ORDER BY table1.field1 UNION SELECT table2.field1 FROM table2 ORDER BY field1
Does not throw an exception