I have a list of IDs and IP addresses and I want to display the amount of times an ID is associated with more than 1 IP address.
For example:
Data Set:
ID IP Address
123 1.1.1.1
123 2.2.2.2
456 3.3.3.3
456 4.4.4.4
456 5.5.5.5
Expected Output:
ID Count of Distinct IP addresses
123 2
456 3
How can I accomplish this using SQL?
Thanks in advance!