Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Re: Designing a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 22 of 29 Topic 3147 of 3295
Post > Topic >>

Re: Designing a structure for a personal database

by "Arved Sandstrom" <asandstrom@[EMAIL PROTECTED] > May 5, 2008 at 01:46 PM

"Stefan Ram" <ram@[EMAIL PROTECTED]
> wrote in message 
news:database-20080503180716@[EMAIL PROTECTED]
> David Segall <david@[EMAIL PROTECTED]
> writes:
>>For most purposes I want to communicate with a family or
>>business at its "home" address. For example, "Fred and Betty
>>Bloggs" or "Acme Widgets" have a specified street address and
>>telephone number. It is possible that the Bloggs family has a
>>holiday house or I have to deal with Acme Widgets at more than
>>one location.
>
>  If a family can have n houses, that is a 1:n-relation, and its
>  implementation is being described in every RDBMS textbook.
>
>>I also need information about individuals such as mobile phone
>>numbers and birthdays but I don't want to duplicate shared home
>>and business addresses and telephone numbers. For example,
>>Betty Bloggs could work for Acme Widgets and share a town house
>>and a country house with Fred.
>
>  Then have one table for persons, one for houses and one for
>  the n:m-relation (standard textbook material).
>
>>have been frustrated by the address books in many applications
>>that insist you supply all the details for every individual.
>
>  If you do not want a field to be mandatory, you are free
>  to design so.
>
>  Just design which entities and relations you want to
>  model and which attributes are mandatory and which not.
>  Then implement this and you are done.

I tend to agree. The basic entities are fairly clearcut: addresses,
personal 
(individual/business) info, phone numbers, email addresses. There are
simply 
going to be lots of relation****ps, and in addition they are going to be 
named relation****ps (so one can designate a work phone number as opposed
to 
a personal phone number, or a primary home address as opposed to a
cottage), 
so the join tables will often have at least one extra attribute.

As far as people sharing addresses, say, like a couple. Well, that's not 
really a database problem, per se. The address itself only needs to be 
stored once - there will simply be two PersonInfo-Address relation****ps.
To 
avoid having to enter the data twice is really more a function of the 
application that one designs to enter (and display) the data. In other 
words, I'd write the application so that it is quite flexible at 
searching/retrieving entities and allowing new links (relation****ps) to be

established.

Myself I would keep personal relation****ps (e.g. couple, family, roommates

etc) entirely separate. That is, if you want to say that Person A is
married 
to Person B, use a separate join table for that. Because personal 
relation****ps do not invariably imply any other linkages.

To recap, I see most of the work being asociated with the interface, not
the 
actual database.

AHS
 




 29 Posts in Topic:
Designing a structure for a personal database
David Segall <david@[E  2008-04-26 14:33:00 
Re: Designing a structure for a personal database
Ed Prochak <edprochak@  2008-04-28 05:46:06 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-04-28 18:33:58 
Re: Designing a structure for a personal database
Martin Gregorie <marti  2008-04-28 21:01:13 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-04-29 13:35:54 
Re: Designing a structure for a personal database
"Arved Sandstrom&quo  2008-04-30 19:25:17 
Re: Designing a structure for a personal database
Ed Prochak <edprochak@  2008-04-30 10:21:09 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-05-02 15:06:55 
Re: Designing a structure for a personal database
Lew <lew@[EMAIL PROTEC  2008-05-02 20:45:39 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-05-03 12:59:57 
Re: Designing a structure for a personal database
"David Cressey"  2008-05-03 13:42:09 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-05-03 15:59:18 
Re: Designing a structure for a personal database
Lew <lew@[EMAIL PROTEC  2008-05-03 09:57:13 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-05-07 15:53:35 
Re: Designing a structure for a personal database
Lew <lew@[EMAIL PROTEC  2008-05-07 19:54:49 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-05-09 08:36:55 
Re: Designing a structure for a personal database
Gene Wirchenko <genew@  2008-05-04 17:45:01 
Re: Designing a structure for a personal database
Roedy Green <see_websi  2008-05-08 19:25:07 
Re: Designing a structure for a personal database
Ed Prochak <edprochak@  2008-04-30 10:27:53 
Re: Designing a structure for a personal database
Ed Prochak <edprochak@  2008-05-07 11:06:18 
Re: Designing a structure for a personal database
ram@[EMAIL PROTECTED] (S  2008-05-03 16:09:12 
Re: Designing a structure for a personal database
"Arved Sandstrom&quo  2008-05-05 13:46:03 
Re: Designing a structure for a personal database
ram@[EMAIL PROTECTED] (S  2008-05-05 14:00:17 
Re: Designing a structure for a personal database
"Arved Sandstrom&quo  2008-05-05 15:50:20 
Re: Designing a structure for a personal database
Lew <lew@[EMAIL PROTEC  2008-05-05 20:14:54 
Re: Designing a structure for a personal database
David Segall <david@[E  2008-05-06 15:22:07 
Re: Designing a structure for a personal database
Marco <zakmck@[EMAIL P  2008-05-07 07:46:12 
Re: Designing a structure for a personal database
Arved Sandstrom <asand  2008-05-08 12:13:34 
Re: Designing a structure for a personal database
Marco <zakmck@[EMAIL P  2008-05-06 02:12:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 9:18:25 CST 2008.