5,831 views

1 Answer

1 1 vote

Foreign Key

The key of a table which acts as a primary key of some another table.

The recursive foreign key is the key which refers back to the same table i.e. the foreign key is in the same table. So Parent and child table is the same.

For example :

Let's have a table Employee having to fields empID and managedbyempID, this both fields contain the employee id's(Both are employees)  from the same table. One act as a primary key and another one will act as a recursive foreign key.  

Position:
Show:

Related questions

3 3 votes
1 1 answer
177
177 views
GO Classes asked Sep 5
177 views
Consider relation $S(D,E)$ with primary key $(D,E)$.The current instance of $S$ contains $(1,3)$, $(2,4)$, $(3,1)$.Relation $R(A,B,C)$ contains the foreign-key constraint...
4 4 votes
1 1 answer
189
189 views
GO Classes asked Sep 5
189 views
Let $R(A,B,C)$ be a referencing relation and $S(D,E)$ be a referenced relation.Suppose $B$ is a foreign key of $R$ that references the candidate key $D$ of $S$.Which of t...
0 0 votes
0 0 answers
929
929 views
srestha asked Sep 16, 2017
929 views
How one to many relation refers a foreign key?
3 3 votes
1 answers 1 answer
1.7k
1.7k views
set2018 asked Sep 14, 2017
1,683 views