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

What is filestream?

991


Can we use where clause in union?

1058


Write a SQL query to make a column as unique?

1030


What is a periodical index?

915


How do I create a partition table in sql server?

1105


How do you set a trace flag in sql server?

1030


What new data source types were added in ssrs 2014?

160


What are the purpose of Normalisation?

1046


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

1058


What is lookup override?

1019


What is tempdb in sql server?

967


What is filter index?

942


Can we create clustered index on composite key?

1068


What are the differences between sql server and mysql.

1084


What are Spatial data types in SQL Server 2008

1010