Just to be certain, I ran some tests and confirmed that my remembrance was indeed incorrect. I was probably getting the direct use of a column mixed up with using a sub-query to pull values. I've been programming with abstract interfaces that shelter me from having to write my own queries too long and it's making my SQL knife dull.
-Justin Scott > -----Original Message----- > From: Jim Wright [mailto:[EMAIL PROTECTED] > Sent: Monday, February 06, 2006 10:20 PM > To: CF-Talk > Subject: Re: Query finding data IN > > The IN operator is used the other way around, but won't help in this > scenario...if the possible values really are 1-9, then you could use > charindex...otherwise you might look at using patindex. > > On 2/6/06, Justin D. Scott <[EMAIL PROTECTED]> wrote: > > > Where table.sites HAS session.variable ....I know > > > has isn't the right term, but this is the english of it. > > > > I believe with SQL Server that you can use a > comma-delimited field as the > > target of an IN function as below. It's been a while since > I've used code > > like this, so I could be remembering wrong. > > > > WHERE #session.variable# IN (table.column) > > > > > > > > -Justin Scott > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231556 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54