Which is the best practice to create the foreign key from the mentioned two- possibility 1:
table1 : user(id,name,password) table2 : exams(id,name) table 3 : user_exam(is,user_id,exam_id)
possibility 2:
table1 : exams(id,name) table2 : user(id,name,password, exam_id)