


SELECT y.*
FROM your_table y
JOIN
(SELECT part_no,MAX(plant_spend) plant_spend
FROM your_table
GROUP BY part_no) t
ON y.part_no = t.part_no
AND y.plant_spend = t.plant_spend;
SELECT *
FROM your_table
WHERE (part_no,plant_spend) IN
(SELECT part_no,MAX(plant_spend)
FROM your_table
GROUP BY part_no);
