TheEntertainer
MIS
Hello,
There is probably a simple answer to this question. I'm trying to write a view but I've got a field which is null and I wish to add it to a numerical field. I've create the view and there is something in FIN2 but FIN1 is null so when I add FIN1 and FIN2 the total field is blank:
Claim FIN1 FIN2 Total
0111011 1200
I would like to effective do the followig in SQL
set FIN1 if null to 0 then add FIN1 to FIN2:
Claim FIN1 FIN2 Total
011101 0 1200 1200
Can this be done and what is the syntax?
Oracle 7.3
SQL Worksheet 1.3.6
Thanks![[2thumbsup] [2thumbsup] [2thumbsup]](/data/assets/smilies/2thumbsup.gif)
There is probably a simple answer to this question. I'm trying to write a view but I've got a field which is null and I wish to add it to a numerical field. I've create the view and there is something in FIN2 but FIN1 is null so when I add FIN1 and FIN2 the total field is blank:
Claim FIN1 FIN2 Total
0111011 1200
I would like to effective do the followig in SQL
set FIN1 if null to 0 then add FIN1 to FIN2:
Claim FIN1 FIN2 Total
011101 0 1200 1200
Can this be done and what is the syntax?
Oracle 7.3
SQL Worksheet 1.3.6
Thanks
![[2thumbsup] [2thumbsup] [2thumbsup]](/data/assets/smilies/2thumbsup.gif)