I’m using 3 CTE’s in my SNOWFLAKE SQL query.
Using CTE 1 to query CTE 2 and CTE 3 and then joining CTE 2 and CTE 3 for Result 2
Eg. CTE 1 = Result 1 CTE 2 join CTE 3 = Result 2
Now I want to use select statements to display Result 1 and Result 2.
Which is not possible to have two select statements while using CTE. What is the alternative method to do this?
Thanks!