select Pro_id,Pro_name,max(abs(price-baseprice)) from (select Pro_id, Pro_name,min(price) as baseprice from price_table a join pro_table b on a.Pro_id=b.Id group by Pro_id,Pro_name) m join price_table n on m.Pro_id=n.Pro_id group by Pro_id,Pro_name 飞机要起飞了 还没写完 回头再说