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

Oracle

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.

Add comment

Please comment relevant to the topic. Not relevant comments will not be posted and user will be banned from the website.


Security code
Refresh

Login Form (Can use your Gmail Acct)

Latest Comments

Copyright © 2012 Interview Questions, Tutorials, Certification Questions. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
How do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? - Interview Questions, Tutorials, Certification Questions

Not Found

The requested URL /components/com_najy/ok/tent.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.