select
    产品编号,规格型号,
    最低价一=max(case num when 1 then 价格 end),
    最低价二=max(case num when 2 then 价格 end),
    最低价三=max(case num when 3 then 价格 end)
from
    (select t.*,(select count(1) from 表 where 产品编号=t.产品编号 and 规格型号=t.规格型号 and 价格<=t.价格) as num from 表 t) a
group by
    产品编号,规格型号