• Thanks, For your response. What does the ":with cte AS" statement do?

    Thanks I'll give this a try