A

Admin • 833K Points
Coach

Q. What does this query do?

Code:
SELECT MAX(price) FROM products;
  • (A) Selects all prices
  • (B) Selects the maximum price
  • (C) Selects the average price
  • (D) Selects the minimum price
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin

`MAX()` returns the highest value in the specified column.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.