I have a table:
source, duration 84991234567, 21 84991234568, 29 84951234569, 22
Where source is the outgoing telephone number, duration is the duration of the call.
I need to group this data by city code, i.e. get the following:
8499, 50 8495, 22
where the second number is the sum of the duration.
The main question is how to group by city code?