I have a table like
FK_OrgId , FK_UserId 3 , 74 1 , 74 1 , 74 3 , 4 4 , 5 1 , 5
I am trying to read FK_OrgId, but I need to eliminate duplicates. So, I want to get the result, for example
FK_OrgId, count 3 , 2 1 , 2 4 , 1
Any suggestions?
source share