LOGO
General Discussion Undecided where to post - do it here.

Reply to Thread New Thread
Old 05-01-2007, 11:58 PM   #1
Rapiddude

Join Date
Oct 2005
Posts
314
Senior Member
Default Any Database Design Experts?
I'm trying to understand relationship dependencies at the moment (in the context of ER/ERD diagrams). And I have one question that I can't seem to find an answer to.

Say I have a one to many relation ship (1:N). Is it possible for the entity on the 1 side of the relationship to be dependent to the N entity?
Rapiddude is offline


Old 05-02-2007, 01:22 AM   #2
Haibundadam

Join Date
Oct 2005
Posts
434
Senior Member
Default
Yes.

In either a Parent (1) or Child(N) dependancy.
Haibundadam is offline


Old 05-02-2007, 01:56 AM   #3
Rapiddude

Join Date
Oct 2005
Posts
314
Senior Member
Default
Cheers for the answer!

Althought its left me rather confused. I haven't yet seen an example of such a dependency- could anyone recommend any good websites on the topic?
Rapiddude is offline


Old 08-01-2007, 09:36 PM   #4
Haibundadam

Join Date
Oct 2005
Posts
434
Senior Member
Default
This is just stuff that I've picked up with my job, soI don't know of any specific books, sorry.

An example of your situation might be:

Table of Customers -< Table of Customer Transactions

Let's say you want to delete a customer, if you had the transaction table with a foreign key of the customer table key they are now independant.

If you make the transactions table key a child key then anything you delete off the customer table can be automatically deleted without your intervention.

It works the other way around too.

Hope that helps.
Haibundadam is offline



Reply to Thread New Thread

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

All times are GMT +1. The time now is 07:25 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2
Design & Developed by Amodity.com
Copyright© Amodity