running PHP with mongo and apache on windows 8. I have a database that lists each session a computer has on the internet, it has a MAC address and the number of bytes the computer has downloaded.
the MAC address's of computers appear more than once with the bytes in the other column.
how would I create a grouped query to list all the MAC addresses in the database and add all the bytes column up to get a total for each MAC address?
MAC BYTES
a3:e4:23 35645
f5:13:d2 1354185
63:a1:c1 8135181
a3:e4:23 67246
f5:13:d2 6848624
a3:e4:23 3542494
then the output when printing the list will look like this with the bytes columns added together and mac's grouped
MAC BYTES
a3:e4:23 3645385
f5:13:d2 8202809
63:a1:c1 8135181