Vidyalelo
MySQL · Q315

MySQL

Programming · MySQL · question 315

Q315

Fill the blanks with suitable options? BETWEEN . . . . . . . . AND . . . . . . . .

A.
Upper and lower limit
B.
Lower and upper limit
Answer
C.
Upper and upper limit
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
In MySQL, the BETWEEN keyword is used to select values within a specific range.

The BETWEEN operator needs two values: a lower limit and an upper limit.

Therefore, the correct answer is Option B: Lower and upper limit.

For example, if you want to select all rows where the age is between 18 and 30, you would use:

SELECT * FROM users WHERE age BETWEEN 18 AND 30;