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 / swapna

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.

It will be a good idea to read up a database designing
fundamentals text book.

Is This Answer Correct ?    48 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration

1027


How to call a function from a stored procedure in SQL Server ?

1081


What are indexes in sql?

1349


What is inline table-value user-defined function?

1163


Which are the new data types introduced in sql server 2008?

927


How to see existing views in ms sql server?

1106


explain what is raid and what are different types of raid configurations? : Sql server database administration

1049


Explain the xml support sql server extends?

1079


What is bcp? When does it used?

1041


While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?

113


Define master database?

1141


Can a table have 2 primary keys?

1031


What are “lock” hints?

1103


What is user-defined function?

1033


where the connection string store in the database

2121