How m-m relationships are implemented?

Answer Posted / samba shiva reddy . m

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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens to a statement batch if there is a compilation error?

698


What are the advantages of sql azure?

134


Working with TLogs

1602


Do you know what is blocking?

727


Can two tables share the same primary key?

682






How will you make an attribute not process? : sql server analysis services, ssas

755


How to delete a login name in ms sql server?

708


What is raid and what are different types of raid levels?

782


How optimize sql query with multiple joins in sql server?

589


Explain the truncate command?

681


How to delete duplicate records based on single column from a table?

780


What is the use of nvl work?

721


What happens when unicode strings concatenate with non-unicode strings?

734


What are the different types of backups that exist?

849


What is the meaning of lock escalation and why/how to stop this? : sql server database administration

784