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:231555 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

