DELETE FROM author_settings WHERE setting_name = 'affiliation' INSERT INTO author_settings (author_id, setting_name, setting_type, setting_value, locale) SELECT aa.author_id, 'affiliation', 'string', aa.affiliation, j.primary_locale FROM authors aa, articles a, journals j WHERE aa.submission_id = a.article_id AND a.journal_id = j.journal_id