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

Answer Posted / sundar

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.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What part does database design plays a role in performance of an sql server-based application?

511


How can you set the threshold at which sql server will generate keysets asynchronously?

561


Explain the concept of recursive stored procedure.

491


What are different types of collation sensitivity?

538


What is global temp table?

550






What is the default fill factor value?

574


what exactly sql injuction.how to overcome.....

2035


Ways to improve the performance of a SQL Azure Database?

103


What is set nocount on and what is set nocount off?

512


What is a heap?

612


What is query optimizer in sql server?

541


What are the different types of triggers in SQL SERVER?

535


Is the primary key column of a table an index in ms sql server?

533


Will sql server 2005 allow you to reduce the size of a column?

547


How ssrs maintain security?

572