I was wondering if there is any way to identify duplicates IDs in a table and flag or group them to as one ID and aggregate its amounts. I tried doing group by but it doesn't seem to be working as the rows are not identical. I will appreciate any suggestions.
Thanks,