create trigger stud_marks before INSERT on students for each row set students.total = students.subj1 + students.subj2 + students.subj3, students.per = students.total * 60 /