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 2005 Forums
 Transact-SQL (2005)
 where condition

Author  Topic 

cplusplus
Aged Yak Warrior

567 Posts

Posted - 2008-01-14 : 16:24:01
I have a select query i want to add a where condition

WHERE a.EnterpriseLevelAccess <> 'None' and a.EnterpriseLevelAccess <> 'Contract'

or can i do the following:

WHERE a.EnterpriseLevelAccess <> 'None','Contract'

Is it possible to put all conditions for Enterpriselevelaccess at a time with a comma seperated?

Thank you very much for the information.

rohitkumar
Constraint Violating Yak Guru

472 Posts

Posted - 2008-01-14 : 16:25:01
WHERE a.EnterpriseLevelAccess NOT IN ('None','Contract')
Go to Top of Page

jdaman
Constraint Violating Yak Guru

354 Posts

Posted - 2008-01-14 : 16:25:12
WHERE a.EnterpriseLevelAccess NOT IN ('None','Contract')

11 seconds too slow
Go to Top of Page

rohitkumar
Constraint Violating Yak Guru

472 Posts

Posted - 2008-01-14 : 16:26:08
I won
Go to Top of Page
   

- Advertisement -