AH
Explore posts from serversDTDrizzle Team
•Created by AH on 5/22/2024 in #help
Self-Join on a CTE
Is it possible to perform a self-join on a CTE?
The main problem is that I cannot alias the CTE for the self-join operation. This prevents me from referencing the previous year's data within the same query. The documentation example demonstrates how to alias and self-join a regular table, but I am unsure how to apply this to a CTE.
Below is a minimal code snippet demonstrating the issue:
4 replies