Solveeit Logo

Question

Computer Science Question on SQL

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

A

5

B

NULL

C

0

D

5NULL

Answer

NULL

Explanation

Solution

In SQL, any arithmetic operation with NULL results in NULL as it represents an absence of value.