MySQL - Fetching lowest value

后端 未结 7 1241
醉酒成梦
醉酒成梦 2020-12-06 03:14

My database structure contains columns: id, name, value, dealer. I want to retrieve row with lowest value for each dealer

相关标签:
7条回答
  • 2020-12-06 03:43
    SELECT MIN(value),dealer FROM table_name GROUP BY dealer;
    
    0 讨论(0)
提交回复
热议问题