I have a table in which i am making two columns as a combine as primary key i think this is called a composit key , Now in another table i want to make one of these two columns as foreign key when i tried that it gives an error , i think it is saying that i should include both columns from second table as well , check the link for table structure
https://sweet-gmail.tinytake.com/sf/NzgwNjE0XzM1MTM1OTk
barathi rajaPosted Jun 28, 2016, 5:25 AM
Karthik ElumalaiPosted Jun 28, 2016, 4:47 AM
Balamurali Krishnan RPosted Jun 28, 2016, 4:46 AM
Vinay SinghPosted Jun 28, 2016, 4:44 AM
As we know Table2 has a composite primary key
(FileID, FileType), then any reference to it must also include both columns.