Unix Technical Forum

Best Practice for Statistical Data Organization in databases

This is a discussion on Best Practice for Statistical Data Organization in databases within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> I'm completely new to databases. What is the best practice for organizing statistical data in a database? I have ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server Data Warehousing

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:01 PM
=?Utf-8?B?QmV0aA==?=
 
Posts: n/a
Default Best Practice for Statistical Data Organization in databases

I'm completely new to databases. What is the best practice for organizing
statistical data in a database? I have 400+ parameters for 185 countries for
20+ years each. How many tables should I use and how should they be
structured (e.g. countries in rows, years in columns, etc).
Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:01 PM
Robert Klemme
 
Posts: n/a
Default Re: Best Practice for Statistical Data Organization in databases

On 26.12.2006 22:04, Beth wrote:
> I'm completely new to databases. What is the best practice for organizing
> statistical data in a database? I have 400+ parameters for 185 countries for
> 20+ years each. How many tables should I use and how should they be
> structured (e.g. countries in rows, years in columns, etc).


Difficult to tell without more detail. With what you disclosed I'd
create a single table with columns (country, year, parm1, parm2, ...
parm400). Reason: I assume all these parameters are different values.
With this layout you can easily do calculations for one parameter
through several years etc.

If the number of parameters changes and they all have the same type
(numeric) then you could also do (country, year, parameter_name,
parameter_value). This design is discouraged, there are recent threads
about this concept (called "entity attribute value"), one of them is here:

http://groups.google.com/group/micro...14fe0399e3540f

Kind regards

robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com