I don't know the answer off the top of my head, but my guess is that you mean need to use a sub-query, which could make it a very expensive query.
It may be easier to pull all the data in an use code to post-process it yourself.
Chris Thompson
2009-06-23 22:08:17