How do you implement one-to-one, one-to-many and many-to-
many relationships while designing tables?

Answer Posted / ramesh

One to one
Parent Entity does have one Corresponding record in Child
Entity

ex : Employee and his CV

One to many

Parent Entity does have many Corresponding records in Child
Entity

ex : Employee and his Projects

many to many

Parent Entity records do have many Corresponding records in
Child Entity vice versa

ex : Employees and Employers
Employees Receive Calls from Many Employers
Employers Receive CVs from Many Employees

Is This Answer Correct ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to generate OIDS

1663


Explain about post-relational databases?

584


What are the types of database model?

546


What is database design and development?

604


How would you design a database for an online site, which would average a million hits a day?

583






Any sample or model question of punjab national bank for deputy manger IT or any sample of PNB.any1 plz do send on

1821


What are the key features of dbms?

568


What is an application role and explain a scenario when you would use one?

561


How to replace not in with not exist?

1468


I HAVE A PI ON COL A THE NEXT DAY I WANT CHANGE THE PI ON COL B? PLS SEND ME THE ANS

2421


You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?

526


You have a table with three columns: amount1, amount2, and amount3 in a single row only one of these three columns will have a value and the other two will be null. Write a sql query to retrieve the values from these columns?

548


How to use timestamp datatypes

1581


Explain about the storage and physical database design?

534


What is the database development process?

691