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 |
Delinda
Constraint Violating Yak Guru
315 Posts |
Posted - 2008-11-27 : 21:58:37
|
Me using SQL Server 2000. My problem is when run SQL, have some resultset have NULL value.Let's say, below is my table and some valueMsgDetProfit (Datatype - money)----------------------------1.354.05NULL8.10NULL6.05...How SQL looks like to make it my resultset will display as followProfit-------1.354.0508.1006.05... |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-11-28 : 02:22:50
|
Use COALESCE function.Or ISNULL. E 12°55'05.63"N 56°04'39.26" |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-28 : 05:46:07
|
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/10/04/isnull-or-coalesce.aspx |
 |
|
wkm1925
Posting Yak Master
207 Posts |
Posted - 2008-11-28 : 09:41:44
|
tq mr. visakh |
 |
|
NeilG
Aged Yak Warrior
530 Posts |
Posted - 2008-11-28 : 09:48:49
|
select isnull(Profit,0)as [Profit] |
 |
|
|
|
|