I have project which contain 4 tables among these shedule table Session column i am not able to add vaue,,this table contain
three foriegn key from two tables(in which single table has two foreign keys here) i added values here..Any one has any idea about this..Actually my intention is to remove the error "the insert statement conflicted with the foreign key constraint sql server"
Table Shedule contains session number as primary key,,it is used as foreign key in Q&A table.Table Q&A contains Question num as primary key .Table Employee contain Employeeid as primary key which is used as foriegn key in Q&A table two times foriegn key as in Shedule table .Table Topic contain Topicid as primary key which is used forign key in Shedule table ans Q&A table Here my problem is i cant add values for session column in Shedule table(which is a primary key) second is whenever i insert values in Q&A table i am getting error like this Error Message: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_QandA_Schedule". The conflict occurred in database "secon", table "dbo.Schedule", column 'Session_No'. The statement has been terminated.