its really close!
UPDATE q
SET q.char_id = c.new_id
FROM `quotes` q
INNER JOIN Character c
ON c.lastname = q.Character
UPDATE q
SET q.author_id = a.new_id
FROM `quotes` q
INNER JOIN Author a
ON a.lastname = q.Author
I've assumed the column names so make sure you put actual names in your query based on placeholders above
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/