From http://stackoverflow.com/questions/224732/sql-update-from-one-table-to-another-based-on-a-id-match?answertab=votes#tab-top