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 > Pgsql Sql > Re: Curious abo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 3440 of 3661
Post > Topic >>

Re: Curious about wide tables.

by jeandavid8@[EMAIL PROTECTED] (Jean-David Beyer) Apr 30, 2008 at 10:25 AM

Shane Ambler wrote:
> Jean-David Beyer wrote:
>> In another thread, the O.P. had a question about a large table with 
>> over 100 columns. Is this usual? Whenever I make a database, which is
>> not often, it ends up with tables that rarely have over to columns, and
>> usually less than that. When normalized, my tables rarely get very
>> wide.
>> 
>> Without criticising the O.P., since I know nothing about his 
>> application, I am curious how it comes about that such a wide table is
>> justified.
>> 
> 
> Depends on the application.
> 
> Something like drivers license db will have a few things like name, 
> address, type, dob, restrictions and end date
> 
> Then something like an insurance policy where each record needs to know 
> who it is for, the item(car - rego make model... house - address suburb 
> state), effective date, end date, date of inception, type of cover,
value
> of cover, excess amount, base premium, agent fees, gov fees, total 
> premium, invoice sent, who entered it and when......
> 
> Sometimes you can have a lot of data that makes up one instance.
> 
I guess it depends on the application and its use.

I guess I _could_ normalize that insurance policy database to where there
would be lots of tables with few fields. E.g.,

Policy Number, Owner
Policy Number, make
Policy Number, house address
Policy Number, State
....

And that would make sense _if_ there were lots of queries such as "How
many
Oldsmobiles are there?" or even "How many Fords are in Indiana?"

But that would be carrying normalization too far if the typical query is
something like "Print out everything about policy number xxx., or "Raise
all
rates in Indiana for Chryslers that expire in August by yy%"

So I guess it would depend on what the typical "query" is. On the one
hand,
I like to normalize things a lot. But on the other hand, data to be
retrieved together should be stored together.

-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 10:15:01 up 43 days, 15:17, 2 users, load average: 4.20, 4.20, 4.21

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 5 Posts in Topic:
Curious about wide tables.
jeandavid8@[EMAIL PROTECT  2008-04-27 09:01:11 
Re: Curious about wide tables.
pgsql@[EMAIL PROTECTED]   2008-04-28 01:02:37 
Re: Curious about wide tables.
jeandavid8@[EMAIL PROTECT  2008-04-30 10:25:11 
Re: Curious about wide tables.
jonah.harris@[EMAIL PROTE  2008-04-27 12:06:41 
Re: Curious about wide tables.
magawake@[EMAIL PROTECTED  2008-04-27 12:14:49 

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 Sep 5 6:56:08 CDT 2008.