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

 Posted by Majith on 7/21/2008 | Category: Sql Server Interview questions | Views: 13759

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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Naraayanan on: 7/20/2012 | Points: 10
Thanks . Please explain with an Example

Login to post response