Using MySQL, I am trying to update one column in Table1 with the value from another column in Table2. I guess I need a subquery, but I am not sure how to go about it. Previously, there was not an autoincrement primary key in the Table2. Instead, the primarykey was derived from meta data. So, to fix this problem, I added an autoincrement primary key to each Table2 record. But now I have to update each Table1 record with the new primary key from Table2. The match can be the OLD primary key (the derived one), which is in both tables. Note, the old faux primary key is a VARCHAR, not an integer, if that matters.