because the intention is not a simple WHERE search expression. The idea is to change the search expression completely depending on a value in a table not in the actual query.
>>-----Original Message----- >>From: James Holmes [mailto:james.hol...@gmail.com] >>Sent: 23 May 2011 01:47 >>To: cf-talk >>Subject: Re: SQL Quandary >> >> >> >>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:344831 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm