Each customer may have several addresses. Delete the older ones so only the most recent address per customer remains.
Run your code to see the output here.