ExamVeda
Login
Home
This question belongs to MySQL MySQL Miscellaneous
MySQL Miscellaneous
?

What will be the output of the following MySQL statement?
SELECT customer_id, product_id, avail_balance
FROM account
WHERE avail_balance BETWEEN 3000 AND 5000.

Answer & Solution
Correct Answer: Option A
This question is asking about how the WHERE clause in a MySQL statement filters data.
The BETWEEN operator in the WHERE clause is used to select values within a specific range.
In this case, the statement is:
SELECT customer_id, product_id, avail_balance
FROM account
WHERE avail_balance BETWEEN 3000 AND 5000.

This means it will select all the rows from the "account" table where the value in the "avail_balance" column is greater than or equal to 3000 and less than or equal to 5000. Therefore, the correct answer is:
Option A: Only those details will be shown whose available balance form 3000 to 5000
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.