Vidyalelo
MySQL · Q332

MySQL

Programming · MySQL · question 332

Q332

Which of these operators does not perform relative-value comparisons?

A.
=
B.
==
Answer
C.
<=
D.
>=

Answer: Option B

Solution

Answer: Option B
Solution:
This question is about how MySQL compares values. We're looking for the operator that *doesn't* check if one value is greater than, less than, or equal to another.
Let's break down the options:
Option A: = This operator checks if two values are equal. This is a relative comparison.
Option B: == This operator is another way to check if two values are equal. This is also a relative comparison.
Option C: <= This operator checks if the first value is less than or equal to the second value. This is a relative comparison.
Option D: >= This operator checks if the first value is greater than or equal to the second value. This is a relative comparison.
The answer is none of the above. All of the operators listed ( =, ==, <=, >= ) perform relative-value comparisons.