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 a unique index?

934


Can you explain the disadvantages/limitation of the cursor?

989


Explain various data region available in ssrs with their use?

934


When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?

941


What are a database and a data warehouse?

1022


What is a group function explain with an example?

991


What are the types of joins in sql?

1128


How to execute multiple stored procedures at one time in sql server?

1011


Write down the syntax and an example for create, rename and delete index?

986


How many full-text indexes can a table have?

974


What are the advantages of sql stored procedure?

1074


Describe the left outer join & right outer join. : sql server database administration

997


In what three ways is the return statement used in a stored procedure?

1008


How to test subquery results with the exists operator?

1107


How can we check the sql server version?

1069