?
What will be the output of the following MySQL statement?
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.
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:
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
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
Join the Discussion
Login to post a comment or share your explanation.
Login