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 |
scottichrosaviakosmos
Yak Posting Veteran
66 Posts |
Posted - 2010-08-09 : 03:13:59
|
my query is :Select distinct CoveNoteNo,ProposerName, convert(decimal(18,2),FinalPremium) as finalpremium,p.ProductName as Product,ChqNo,ChqDate from DtlCvrNotePremium d with(nolock) inner join usrmgmt..usgi_product p with(nolock) on d.product=p.productvalueWhere d.ChqNo is null and d.category='MO'now i there are some row in final premium which is null so final premium is not able to convert so i want that if row is null then also select with value 0 in that and not then display normally..FinalPremium is varchar fieldscoo |
|
PavanKK
Starting Member
32 Posts |
Posted - 2010-08-09 : 03:32:46
|
May be this is what you are looking forSelect distinct CoveNoteNo,ProposerName,convert(decimal(18,2),ISNULL(FinalPremium,0)) as finalpremium,p.ProductName as Product,ChqNo,ChqDate from DtlCvrNotePremium d with(nolock) inner join usrmgmt..usgi_product p with(nolock) on d.product=p.productvalueWhere d.ChqNo is null and d.category='MO'KK |
 |
|
|
|
|
|
|