I have this database:
And would like to count how many persons has authorization to each machine.
I'm trying to get something like:
MachineID Authorized
11 2
12 4
I have tried several combination of count and distinct - but has so far only been able to get the total number of authorized on all machines