I have a long series of CTEs, and I want to insert the results into a temporary table at the end. However, I am ending up with 16 rows of duplicate data instead of just the one. Here is my code:I have a long series of CTEs, and I want to ins
I have a long series of CTEs, and I want to insert the results into a temporary table at the end. However, I am ending up with 16 rows of duplicate data instead of just the one. Here is my code:I have a long series of CTEs, and I want to ins