Hello everyone I have the following situation.
with cte as (#large query), cte2 as (#query that uses cte multiple times) select * from (#large query) where field