Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 check if a number is in a certain set of numbers

Author  Topic 

vux
Starting Member

45 Posts

Posted - 2004-07-21 : 00:05:54
I want to make a filter:

WHERE table.OrgID IS IN (1243, 1346, 3444, 4355,.....)

OgrID is a Char(4)

how is the right syntax to this?

thank you!

kselvia
Aged Yak Warrior

526 Posts

Posted - 2004-07-21 : 00:13:27
You were close. Should be:

WHERE table.OrgID IN ('1243', '1346', '3444', '4355',.....)


--Ken
Your Kung-Fu is not strong. -- 'The Core'
Go to Top of Page

vux
Starting Member

45 Posts

Posted - 2004-07-21 : 00:30:51
thank you!

I finally found a transact sql eBook and also the Transact Reference on the SQL 2000 Server

will look these little things upo there first...
...so you guys will only get the complicated stuff

thx
Go to Top of Page
   

- Advertisement -