Hi,
I have a table
id - Product_Name - Price - image
Some value like :
1 - My Product A - 50 - mpa.jpg
2 - My Product B - 10 - mpb.jpg
3 - My Product A - 40 - mpc.jpg
4 - My Product C - 20 - mpd.jpg
i need product image of unique product based on minimum value. i am useing this query
SELECT id, Product_Name, MIN(Price), image FROM table GROUP BY Product_Name
It is showing right min price but the it is wrong, that's why i am geting image wrong, please help me to fix this