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.
| Author |
Topic |
|
Sarakumar
Posting Yak Master
108 Posts |
Posted - 2009-04-02 : 10:56:03
|
| hai, is ther any way, to replace the negative value to zero in the sql query.i have some sum query, after sum up, i subtract from another number, sometimes, it become -ve value.if it is -ve value i want to make it as zero.is there any way? |
|
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2009-04-02 : 10:57:09
|
| use CASE expression.Dinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
|
|
|
|