Question : SQL find customers who ordered something more than once

How can I query my SQL database and find all the duplicate orders where a customer ordered something more than once?

Answer : SQL find customers who ordered something more than once

example

select customerid, productid, count(*)
from orders
group by customerid, productid
having count(*) > 1
Random Solutions  
 
programming4us programming4us