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



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

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

More DB Development Interview Questions

What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?

0 Answers  


Explain what a database is?

0 Answers  


Does QTP Support the Propjects which are running in Dot Net? As we are starting with new project in Dot net need to use automation tool?Please advice & let me know what would be the best.

0 Answers  


Can you instantiate a COM object by using T-SQL?

1 Answers  


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

0 Answers   IBM,


What is denormalization and when would you go for it?

9 Answers   NBP,


Explain the family trees and connection by clause.

1 Answers  


Where is dbms used?

0 Answers  


Explain about the relational database?

0 Answers  


Who are end users in dbms?

0 Answers  


Explain the role of indexing in databases?

0 Answers  


Why does this query return 0?

0 Answers  


Categories