I have a developer wrote code using a lot of CTEs in a stored procedure.Basically, one CTE call another CTE call another CTE.CTE is sometimes easy to understand, but if using many I lose of track in the middle, and need keep going back to see what the field means, and it is hard to debug for some data issues.Any recommendation to debug or run some test cases for a stored procedure that may use serveral CTEs.Thanks,
↧