We help IT Professionals succeed at work.
Get Started

Circular relationship in N tables

sonicefu
sonicefu asked
on
755 Views
Last Modified: 2012-06-27
Hi,

I need detailed description about the circular relationship between a number of tables, for example TableA's PK is referred by TableB's FK, TableB's PK is referred by TableC's FK ................. TableY's PK is referred by TableZ's FK and TableZ's PK is referred by TableA's FK.

In technical words you can say that there are  n tables, R1, R2, …, Rn, such that the foreign key of table R2 references to the primary key of table R1 (RIC2), the foreign key of table R3 references to the primary key of table R2 (RIC3), …., the foreign key of table Rn references to the primary key of table Rn-1 (RICn), and the foreign key of table R1 references to the primary key of table Rn (RIC1).

--> Please describe how to create tables R1, …, Rn and to enforce all the referential integrity constraints RIC1, RIC2, …, RICn.
--> Please describe how to populate the data into tables R1, …, Rn.


Best Regards,
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 3 Answers and 7 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE