Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are different replication agents and what's their purpose? : sql server replication

1023


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

1194


What is the difference between ddl,dml and dcl commands?

1114


what is create database syntax? : Sql server database administration

1111


How to transfer a table from one schema to another?

1003


What stored by the master?

952


What is the function of sql server agent windows service?

1099


What is tablix?

162


Explain the phases a transaction has to undergo?

1057


What is a trigger and types of a trigger?

983


What is the difference between row_number and dense_rank?

881


What triggers long term care?

1039


What is an indexing strategy?

1010


What is data mart? : sql server analysis services, ssas

1060


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

993