Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select top 10 (select name from tst_customers where id = customerID) customer, count(*) cnt from tst_orders
- where productID = @hide_productID
- group by customerID
- order by count(*) desc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement