Subtracting null from a number

how can i subtract a null from a number..is it possible in sql. i have a number in one column and nulls in another column.
my query should give me all the numbers but i have to do subtraction because in the second column there are som numbers. thanks for ur help.
zafridiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Aneesh RetnakaranConnect With a Mentor Database AdministratorCommented:
SELECT Col1 - ISNULL(urNullColumn, 0)
from urTable
0
 
zafridiAuthor Commented:
oh i got it. i just used isnull to make it 0.
0
 
zafridiAuthor Commented:
thanks for urhelp anyway..tat was quick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.