Question:medium

What is the result of the following arithmetic operation in SQL: SELECT 5 + NULL AS RESULT?

Updated On: Jan 16, 2026
  • 5
  • NULL
  • 0
  • 5NULL
Show Solution

The Correct Option is B

Solution and Explanation

In SQL, arithmetic operations involving a NULL value invariably produce a NULL result. This is due to NULL representing an unknown or undefined value; any calculation with such a value yields an unknown outcome. Consequently, when the query:

SELECT 5 + NULL AS RESULT;

is executed, the integer 5 is added to NULL. As NULL signifies an unknown quantity, the resulting sum is also unknown, returning:

NULL

Therefore, the output of the SQL statement SELECT 5 + NULL AS RESULT is definitively NULL.

Was this answer helpful?
0