Skip to content

Tag: sql

UNION ALL query using WITH statement breaks

I wrote a query using with statement and union all. But, I am not used to writing complex queries. It keeps breaking in the union all. Please point me where it is wrong? WITH t1 (source, target) AS ( …