RobNotKnowing
MIS
Hi,,,,
I am trying to replace the Nulls with blanks in my query output. Does any1 know how?
I am trying to replace the Nulls with blanks in my query output. Does any1 know how?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select loan_no_i,loan#,prevloan#,invloan#,fname,lname,
add1,add2,city,state,zip,upb,daysdelq,gracedays,nextdue,totaldelq,
intrate,propadd1,propadd2,propcity,propstate,propzip, [COLOR=red]Nz(cg.homephone, "") as cgHomePhone, Nz(cg.workphone, "") as cgWorkPhone, Nz([b2 homephone], "") as b2HomePhone, Nz([b2 workphone], "") as b2WorkPhone[/color], perdiem,lastrecd,loandate,loanamt,investor,
pool,ssn,[b2 ssn],b2fname,B2Lname,[b2 add1],[b2 add2],[b2 city],
[b2 state],[B2 Zip],pipmt,impoundamt,
monthsdelq,statement,pidelq,suspense,nsfdue,[latechgdue type],unpartial,
[Late Fee Perct],[Fixed Late],LienPosition,CollCode,Status,[Status Date]
[Maturity Date],FirstPmt,[LateChgDue Amt],Warning,Legal,
[Mail Stop],BKChap,BKCase#,OptOut,AdvanceAmt,
EscrowBal,ARMLoan,PrePetSuspense,StipSuspense,PostPetSuspense,
c.FollowUpDt,c.PromisedByDate
from rtr_cgallloans as cg
inner join contact as c on c.loanid = cg.loan_no_i
where status = '1'
and (legal not in ('dsc7all','dsc7par','dsc13all','dsc13par','chap7','chap11',
'chap12','chap13','fcl','bk/fc','dsc/fc','bkpend', 'REO'))
or legal is null
and cg.homephone not like '(000%'
and cg.homephone not like '(111%'
and cg.homephone not like '(222%'
and cg.homephone not like '(333%'
and cg.homephone is not null
~Melagan
______
"It's never too late to become what you might have been.