You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a query that is equivalent to the one here:
WITH some_alias AS (
SELECT *
FROM table_1
WHERE ....
)
SELECT col1, col2
FROM some_alias
WHERE condition1 AND condition2
UNION ALL
SELECT col3, col4
FROM some_alias
WHERE condition3 OR condition4
In a previous issue ( #359 ) there a mention to add the ctes to the first query, but here I want the CTE to be available to both parts of the union.
Is that possible? Is there a way to extend the _SetOperation to add a with_ part?
The text was updated successfully, but these errors were encountered:
I'm trying to build a query that is equivalent to the one here:
In a previous issue ( #359 ) there a mention to add the ctes to the first query, but here I want the CTE to be available to both parts of the union.
Is that possible? Is there a way to extend the
_SetOperation
to add awith_
part?The text was updated successfully, but these errors were encountered: