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
 SQL Server Development (2000)
 need qry

Author  Topic 

niranjankumark
Posting Yak Master

164 Posts

Posted - 2008-09-24 : 06:49:08
Can case be used in where clause ???


if not mean how can write the case condition in where clause ???
where
case when
Mat.Mattype = “litigation”
then Mat.Mat_statusdate else @refdate

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-24 : 07:08:07
Of course.

where case Mat.Mattype when 'litigation' then Mat.Mat_statusdate else @refdate end > '20080901'



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -