I have this query:
UPDATE student_info
set grade = (SELECT tempTable.grade
FROM tempTable
WHERE student_info.s_id = (SELECT s_id FROM tempTable))
I’ve also tried the suggested solution here:
http://dev.mysql.com/doc/refman/5.0/en/subquery-errors.html
I guess you want: