1.

What does comparing a known value with NULL result into?(a) zero(b) a positive value(c) a negative value(d) nullI got this question by my school principal while I was bunking the class.This key question is from MySQL Setup in chapter General MySQL Use of MySQL

Answer»

Correct answer is (d) null

For explanation: In MySQL, NULL is not comparable to other known values. It will RESULT in a NULL when COMPARED to any value. The following STATEMENT would result in four NULLS: ‘SELECT NULL = 0, NULL < 0, NULL <> 0, NULL > 0’.



Discussion

No Comment Found

Related InterviewSolutions