I want to update the postal code for the same customers based on their latest purchase date.
Customer_code Postal_code last_purchase_date
12345 444555 20130131
12345 444555 20130131
12345 123456 20110131
As the third field postal code is outdated, i want to update it and replace it with the latest postal code which is '444555' based on the latest purchase date. because i have a few hundred thousand fields similar to this, any suggestions for this?