retagged by
1,486 views
2 votes
2 votes

A primary key, if combined with a foreign key creates

  1. parent child relationship between the tables that connect them
  2. many-to-many relationship between the tables that connect them
  3. network model between the tables that connect them
  4. none of these
retagged by

5 Answers

Best answer
4 votes
4 votes
Foreign key is used to create a existential dependency like for example consider Employee and Dependent tables. In this case the primary key of Employee table is employee_id. In the Dependent table we will have an employee_id field which will refer to employee_id field of Employee table (foreign key). An employee dependent can exist only if the employee entry exist in Employee table. This creates a parent child relationship.

A foreign key entry can refer to a single parent key entry but multiple foreign key entries can refer to the same parent key entry. So, this is a $m:1$ (many-to-one) relationship.

So A is correct.
selected by
1 votes
1 votes
  1. parent child relationship between the tables that connect them

the primary table will act as the parent table while the table with the foreign key will act as the child table.In such a case,one parent can have more than one child,creating a one to many relationship

0 votes
0 votes
THE CORRECT ANSWER IS OPTION A, IT CREATES PARENT CHILD RELATIONSHIP WHERE DEPENDENT TABLE BECOMES CHILD AND OTHER BECOMES PARENT. ALSO IN ANY TABLE P-KEY IS ALWAYS BUT USING THEM AS F-KEY WE CAN FOR MANY TO 1 RELATIONSHIPS.
Answer:

Related questions

3 votes
3 votes
4 answers
1
admin asked Apr 2, 2020
2,409 views
Every Boyce-Codd Normal Form (BCNF) decomposition isdependency preservingnot dependency preservingneed be dependency preservingnone of these
2 votes
2 votes
2 answers
2
admin asked Apr 2, 2020
4,946 views
A functional dependency of the form $x\to y$ is trivial if$y\subseteq x$$y\subset x$$x\subseteq y$$x\subset y\:\text{and}\:y\subset x$
1 votes
1 votes
2 answers
3