Tony Yiu has just posted a question about how to turn a loop-of-queries into a single SQL query. I'm sure he'd be grateful for your insights... ;-)