Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Flowing Fount of Yak Knowledge
quote:Originally posted by nigelrivettyou need an endSELECT SUM(value) AS Totalos....Case When SUM(Values) > 0 then 0 Else SUM(Values) end - Select SUM(value2) as test from anothertable...==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy.