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 the difference between clustered and a non-clustered index?

1087


What is the difference between a unique key and primary key?

1000


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

1105


What is a benefit of using an after insert trigger over using a before insert trigger?

1026


How to filter out duplications in the returning rows in ms sql server?

1208


Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

1075


What are the difference between data mart and data warehouse? : sql server analysis services, ssas

1006


What is the difference between varchar and varchar(max) datatypes?

1129


What is ms sql server service broker?

1035


What is rs.exe utility?

162


What do you mean by recursive stored procedure?

986


Is a primary key unique?

1033


What are the transaction properties?

1066


List the types of recovery model available in sql server?

969


What is the latest version of microsoft sql server?

1108