MCQs > IT & Programming > MySQL > Suppose a table has the following records: +--------------+-------------+----------------+ | Item | Price | Brand | +--------------+-------------+----------------+ | Watch | 100 | abc | | Watch | 200 | xyz | | Glasses | 300 | bcd | | Watch | 500 | def | | Glasses | 600 | fgh | +--------------+-------------+----------------+ Which of the following will select the highest-priced record per item?

MySQL MCQs

Suppose a table has the following records:

+--------------+-------------+----------------+

| Item | Price | Brand |

+--------------+-------------+----------------+

| Watch | 100 | abc | | Watch | 200 | xyz |

| Glasses | 300 | bcd | | Watch | 500 | def |

| Glasses | 600 | fgh |

+--------------+-------------+----------------+

Which of the following will select the highest-priced record per item?

Answer

Correct Answer: select item, brand, max(price) from items group by item

Explanation:

Note: This Question is unanswered, help us to find answer for this one

MySQL Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

MySQL Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it