I have the below table :
Name, Total, Email Address Date
Test1,12,[email protected] 12/12/2012
Test2,12,[email protected] 12/05/2015
Test2,12,[email protected] 12/05/2015
Test3,12,[email protected] 12/07/2016
I want to match on Name, Email Address and Date. If an existing record is found then I want to merge them and add the totals together. e.g.
Test2,12,[email protected] 12/05/2015
Test2,12,[email protected] 12/05/2015
would become
Test2,24,[email protected] 12/05/2015
What options do I have?. If i iterate sequentially and check for every one it would take a substantial amount of time.. (was thinking to use range check and check current row against all, if found then delete and add a new row).Would appreciate some examples.