Very cool! I've never used CTE's because I'd never heard of them until now, so thanks for the educational post!
You're welcome, glad it was useful :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.