Skip to content
Advertisement

SQL minus 2 columns – with null values

I have this table (made from a SQL query):

And I want to minus the 2 columns, so I just select like this:

But then I get this result:

instead of:

How can I make it possible to get the last result?

Advertisement

Answer

Please try:

For more Information visit ISNULL

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement