I'm trying to update CurrentLevel
on table FSB_ProcessStudents
From Students
table based on StudentId
that's my statement
UPDATE FSB_ProcessStudents SET Currentlevel =
(SELECT
s.LevelId
From FSB_Students s
INNER JOIN FSB_ProcessStudents ps
ON ps.StudentId = s.StudentId)
on Excution it gives me the error :
Subquery returned more than 1 value.
where did I go wrong?