This is my update query :
update grade
set grade='A'
where (select assignment*0.3+midExam*0.35+finalExam*0.35 as FINALSCORE
from taking) >= 85
and taking.student_id = grade.student_id
and taking.subject_id = grade.subject-id;
and the result is below
Unknown column 'taking.student_id' in 'where clause'
What am i doing wrong ?