I have table with folowing structure. The content in this table is duplicate. I want to show the record with min price.
GROUP IDX NAME PRICE
141003 6 0285-00 499.88000
141003 2 028500 519.13000
141003 1 0285-00 424.12000
141005 2 02851 559.13000
141005 1 0285-1 434.12000
RESULT TABLE
141003 1 0285-00 424.12000
141005 1 0285-1 434.12000
I trying this but returned result is:
141003 6 0285-00 499.88000
Query:
select group, idx, name, price
FROM table
GROUP BY group
ORDER BY price;
Would do the trick.