To find out how many each client you have:
SELECT COUNT(*), CustName, CustomerID from Customer Group by CustName, CustomerID
You can use the having to restrict only duplicates:
SELECT COUNT(*), CustName, CustomerID from Customer Group by CustName, CustomerID having count(*) > 1
UPDATE
To receive successful orders:
select count(*), CustName, CustomerID from( SELECT CustName, CustomerID from Customer, orders where customer.orderID = orders.orderID and orders.success = 1) subquery group by subquery.CustName, subquery.CustomerID having count(*) > 1;
source share