The students who did all the exercises succeeded.
(Which students succeeded? Only
the students doing all the exercises.)
The students, who did all the exercises, succeeded.
(All students succeeded. Why? Because they did all the exercises.)
Compare the following sentences