I am trying to make online examination system. I have three tables. Table "student" has details of students, column id identifies students uniquely. Table "tests" has details of all the tests available and there is a column id which contains id of tests. and then I have tables of tests which contains questions and answers.
Now I want that if any student has appeared in a test, it can not reappear in that test again. How can I achieve that? Please help. Thanks in advance.