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)
 case statement

Author  Topic 

skillile
Posting Yak Master

208 Posts

Posted - 2001-11-14 : 13:15:21
what is the proper syntax for this case statement. I am trying
to check for 0 or the correct value.


select a.startstep,
b.endstep,
(select case rowspan when b.endstep-a.startstep=0 then 1 else b.endstep-a.startstep end) as rowspan,
a.eid,
c.pid,
a.uid,
a.sdesc,
a.sdate,
a.edate,
a.clblock

from #starttimetab a
INNER JOIN #endtimetab b ON a.eid = b.eid
INNER JOIN #users c ON c.UID=a.UID
WHERE c.pid=@x
ORDER BY c.pid, a.sdate
SET @X=@X+1



thanks

slow down to move faster...
   

- Advertisement -