Why not just add the subquery in as part of the where clause for each type of record you want?
On Monday, 23 May 2011, Jenny Gavin-Wear <jenn...@fasttrackonline.co.uk> wrote: > > Thanks Russ, I agree, I can't see a way around it using CASE or JOINS. > -- -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344829 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm