dbTalk Databases Forums  

What is the advantage to this kind of database structure?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss What is the advantage to this kind of database structure? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stapes
 
Posts: n/a

Default What is the advantage to this kind of database structure? - 05-24-2011 , 05:11 PM






I have had to do maintenance work on a number of databases that have
been created using what seems to me a very complex structure.

For instance, instead of having one table of information on members of
staff, there are 20. Separate tables exist for items which are
compulsory - such as Medical information, Criminal Records, etc. I can
understand this in the case of optional items, which may or may not
exist, such as Interview results, or items which may exist in
multiples, such as References.

Is there any advantage to this kind of structure?

Reply With Quote
  #2  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: What is the advantage to this kind of database structure? - 05-24-2011 , 05:34 PM






On Tue, 24 May 2011 15:11:56 -0700 (PDT), stapes
<steve.staple (AT) gmail (DOT) com> wrote:

Quote:
I have had to do maintenance work on a number of databases that have
been created using what seems to me a very complex structure.

For instance, instead of having one table of information on members of
staff, there are 20. Separate tables exist for items which are
compulsory - such as Medical information, Criminal Records, etc. I can
understand this in the case of optional items, which may or may not
exist, such as Interview results, or items which may exist in
multiples, such as References.

Is there any advantage to this kind of structure?
Are you sure about the cardinality of the data? Medical
information, for example, does not strike me as something that is
just-one-of (unless it is very abbreviated).

Sincerely,

Gene Wirchenko

Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: What is the advantage to this kind of database structure? - 05-25-2011 , 04:32 PM



stapes (steve.staple (AT) gmail (DOT) com) writes:
Quote:
I have had to do maintenance work on a number of databases that have
been created using what seems to me a very complex structure.

For instance, instead of having one table of information on members of
staff, there are 20. Separate tables exist for items which are
compulsory - such as Medical information, Criminal Records, etc. I can
understand this in the case of optional items, which may or may not
exist, such as Interview results, or items which may exist in
multiples, such as References.

Is there any advantage to this kind of structure?
It's difficult to tell without seeing the full picture. But as Gene
points out, cardinality is a big deal. If there is one row for each
offense in the CriminalRecords table, you can't have that data in the
main table.

But from what you say "CriminalRecord" is a single column, presumably
a blob column. Maybe someone thought it would be better to have them
separated for some not such a good reason, for instance because
they use SELECT * all over the place.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.