All, using Access 2016. Having a senior moment. I have a cust table with order numbers. I want to query only those customers with multiple order numbers but the order numbers are different. So if a customer have 3 different order numbers but 2 are the same order number; I just want it to list the 2 different ones. I have the following:
Code:
select customerid, count(*)as order_count
from orders
groupby
customerid having count(*)>1
This give me all the customers and the count of orders. I need to exclude if they don't have multiple different orders.