• That's nice and elegant. Thanks!

    Starting a sql statement with WITH is new to me. I will have to look into that closer but it works great.