Q.

Which of the following can be used to get those items that fall within a range?

A. IN
B. BETWEEN
C. DISTINCT
D. LIKE
Answer» B. BETWEEN
Explanation: The BETWEEN operator is used in SQL to filter the results that fall within a specific range of values (inclusive).
For example:

SELECT * FROM products WHERE price BETWEEN 10 AND 50;

IN: is used to filter results that match any value in a list.
DISTINCT: is used to return unique values.
LIKE: is used for pattern matching in strings.
1.1k
0
Do you find this helpful?
6

Discussion

Chandu Dodali
8 months ago

Answer is b(BETWEEN) not c(DISTINCT).
0