标签: sql
我有三张桌子
Seller
Product
Sells
如何找到以相同价格销售同一产品的卖家?
答案 0 :(得分:1)
类似
select x.SellerID ,y.SellerID from sells x join sells y on x.ProductID = y.ProductID and x.price = y.price and x.SellerID <> y.SellerID