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
Following the example here I was able to get a cte working with the output being Select * from a physical table which generates the following as expected:
with an_alias AS
(
SELECT fizz
FROM efg
)
SELECT *
FROM abc
JOIN an_alias on an_alias.fizz = abc.buzz
When attempting the same for a subquery, the final select statement becomes a nested subquery rather than direct access to the subquery with a Select ...
Following the example here I was able to get a cte working with the output being
Select *
from a physical table which generates the following as expected:When attempting the same for a subquery, the final select statement becomes a nested subquery rather than direct access to the subquery with a
Select ...
Output:
Is it possible currently to unnest the final select like below?
It's causing a large increase in the execution plan to have to run the subquery then join to it after.
The text was updated successfully, but these errors were encountered: