Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT *
- FROM SUPPLIER
- WHERE Sno IN (SELECT Sno FROM SHIPMENT GROUP BY Sno HAVING SUM(Qty*Price) >= ALL(SELECT SUM(Price*Qty) FROM SHIPMENT GROUP BY Sno))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement