INSERT INTO table1(user_uuid, login_id) SELECT users_uuid, '1234' FROM table2 WHERE first_name LIKE 'ortal';