I was trying something like this: <cfquery name="orphanRooms" dbtype="query"> select * from roomList WHERE name = 'x' <cfloop query="roomsDB">OR roomList.name = '#roomid#' </cfloop> </cfquery>
I think I am getting somewhere with it. Anything inherently wrong with this? Stefan On 31 Jan 2011, at 17:54, Raymond Camden wrote: > > Um, did you try the where clause? You said it didn't work - how did it > not work? Can you show us the full code and the error? > > > On Mon, Jan 31, 2011 at 11:48 AM, Stefan Richter > <[email protected]> wrote: >> >> Hi all, >> hoping for some advice with querying a query - at least I think that's >> what's a good fit here but feel free to advise otherwise. >> >> I've got a folder which contains 35,000 folders. I've also got a table with >> lots of records, where the roomid column matches the name of one of the >> folders. >> I know some folders do not have a matching record, and I want to identify >> those records. >> >> <cfdirectory action="list" name="roomList" type="dir" directory="#roomsDir#"> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:341737 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

