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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Null Values

Author  Topic 

rwlopez
Yak Posting Veteran

80 Posts

Posted - 2006-10-24 : 14:32:49
Is there a way to treat Null Values as a Zero?

For example Null + 1 = 1

Rather than Null + 1 = Null

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-10-24 : 14:51:05
Use ISNULL function.

Tara Kizer
Go to Top of Page

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2006-10-24 : 15:13:25
How do you define NULL as 0, is this an outer join?

____________________
I have null problems

rockmoose
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-10-24 : 23:07:37
>>___________________
I have null problems

Rocky, I like your topic level signature

rwlopez, read about ISNULL function in sql server help file
You may need to use

Select ISNULL(col,0)+1 from table

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -