SQL tutorial | Interview questions | Oracle
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do you implement one-to-one, one-to-many and many-to-many relationships while designingtables?

Go down

How do you implement one-to-one, one-to-many and many-to-many relationships while designingtables? Empty How do you implement one-to-one, one-to-many and many-to-many relationships while designingtables?

Post by Micheal Sun Jan 10, 2010 7:53 am

One-to-One relationship can be implemented as a single table and rarely as two tables with primary and foreign key relationships. One-to-Many relationships are implemented by splitting the data into two tables with primary key and foreign key relationships. Many-to-Many relationships are implemented using a junction table with the keys from both the tables forming the composite primary key of the junction table.

Visit for more www.freedba.co.cc

Micheal
Admin

Posts : 243
Join date : 2010-01-10

http://sql-tutorial.co.cc

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum