The INSERT statement conflicted with the FOREIGN KEY constraint "FK__StudentEx__UserI__5441852A". The conflict occurred in database "OnlineExam", table "dbo.Resultsforstudents", column 'UserID'.
The statement has been terminated.
am geting this error,acn you please clarify,wht should i getting this error?
i have two tables resultsforstudents(columns are UserID,UserName,domaiin,marks where userid is primerkey)
2)studentExamFullResult(columns areUserID,QuestionID,Question,SelectedOption,CorrectOption where UserID is a foreign key)and database name is onlineexam