alesik Commented 11 Months ago through
Puzzles
Maxim is your solution for MS2012 or 2008?
anyway can you share this for me? I posted solution with correct results when using castling sample data script <br> and 2008R2 but seems slow to me and can't figure out how to make it without recursive cte <br>