Thanks ! That is great.
I'm no SQL expert...this works great and I have customized it a little to fit my needs but I'm trying to change something else. Instead of getting all MAC addresses from a port, is it possible to just have the sum ? I'm talking about the second query.
So, for example, instead of getting 5 MAC addresses from a port, I would like to show "4".
thanks