To establish a range of values, < and > can be used.
Answer: A
Correct answer: True
The comparison operators establish a range directly: WHERE salary > 30000 AND salary < 50000 bounds the values on both sides.
They differ from BETWEEN in one respect that matters. BETWEEN is inclusive of both endpoints, whereas < and > are strict, so the two forms are not interchangeable at the boundaries - >= AND <= is what matches BETWEEN. Using the operators explicitly is the clearer choice when one end should be included and the other not.
Please log in or register to report this question.