Subtracting null from a number

how can i subtract a null from a 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.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Aneesh RetnakaranConnect With a Mentor Database AdministratorCommented:
SELECT Col1 - ISNULL(urNullColumn, 0)
from urTable
zafridiAuthor Commented:
oh i got it. i just used isnull to make it 0.
zafridiAuthor Commented:
thanks for urhelp anyway..tat was quick
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.