• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Simple SQL programing question

lasergecko

Senior member
I've got a table that has ProductID, customer, and price. There are multiple productIds (ie. 4 instances of productID = 5) each with different prices. I'm trying to write a query that will return a productID and the maximum price for that productID.

(When I do select distinct productID, price it returns multiple productIDs. I'm not sure how to use the MAX function to apply it for each productID).

How would I go about doing this?

Thanks in advance.
 
Back
Top