Hi Sergey,
Thank you very much for your code example. Works great! I especially like how you accomplished your solution in a single (compound) SELECT statement.
I gave you a Help vs. Solution because I wanted to share my thanks with Hugo whose solution also works well. I'm not sure what the protocol for situations like this, so I hope this approach doesn't offend you.
Thanks again for your help!
Regards,
Malcolm