UPDATE enrollments e
JOIN students s ON e.student_id = s.student_id
SET e.email = s.email;