Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select od.ProductID
- from [Order Details] as od
- join Orders as o
- on od.OrderID = o.OrderID
- join Customers as c
- on c.CustomerID = o.CustomerID
- group by od.ProductID
- having count(c.CustomerID) > 1
- order by od.ProductID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement