I am trying to build the correct SQL query (Oracle) to get a device_id counter for each customer_id that is greater than the given value. For example, I want to know a client_id that contains more than 3 Device_ID. A single device_id can have only one client_id associated with it, while a customer_id can have many device_ids.
Table: device_id customer_id .... Data (device_id, customer_id): 00001, CUST1 00002, CUST1 00003, CUST1 00004, CUST1 00005, CUST2 00006, CUST2
source share