MS SQL Server Concepts and Programming Question:

Download Job Interview Questions and Answers PDF

What Happens If NULL Values Are Involved in Arithmetic Operations?

MS SQL Server Interview Question
MS SQL Server Interview Question

Answer:

If NULL values are involved in arithmetic operations, the result will be numeric NULL values. The following tutorial script shows you some good examples:

SELECT 7+NULL;
GO
-----------
NULL

SELECT 10.02*NULL;
GO
-----------
NULL

SELECT 4.988E+10/NULL;
GO
-----------
NULL


Download MS SQL Server Interview Questions And Answers PDF

Previous QuestionNext Question
How To Assign NULL Values to Variables or Columns?What Happens If NULL Values Are Involved in String Operations?