SELECt a.id, a.price*ISNULL(s.to_aud,1) as minpriceFROM( SELECt type_id, min((price+shipping)) as minprice FROM products GROUP BY type_id) AS b INNER JOIN products as a on a.type_id = b.type_id and (a.price+a.shipping) = b.minpriceInner join sellers s on s.id = a.seller_idORDER BY price
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)