Oh Luxury!
Many thanks, several hours (or days) more of headbanging averted and am in with a chance of hitting my deadline.
It's also helping my understanding of how to work the CTEs and hierarchies.
A good example saves so much time.
Can't thank you enough!
:-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-)