-
Notifications
You must be signed in to change notification settings - Fork 690
Union
Mathias Wulff edited this page Dec 15, 2025
·
5 revisions
Syntax:
SELECT ... UNION SELECT ... [ORDER BY ...]You can use ORDER BY clause to sort the result of the UNION.
SELECT * FROM table1 UNION SELECT * FROM table2 ORDER BY column1See also: [UNION ALL](Union All), INTERSECT, EXCEPT, CORRESPONDING
© 2014-2026, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo