If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Help designing tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-07, 11:02
Sasiko Sasiko is offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Help designing tables

Hi

I am new in this forum. Excuse me for my English, but I am learning and for me is very difficult to write in English.

As you are supposing I need help in the designing of some tables, perhaps a little orientation. I am working in a project about a group of cities, and development indicators (???) like unemployment rate and salary rate (150 indicators in total) .
There are 5 indicator types, and 30 subtypes (more or less). To calculate these indicators I have in total 220 variables, and the indicators must be calculated every year.
I need all indicators calculated in a table, because it is going to be used in a map service to create thematic maps, and it can’t be calculated when the users display the map.

This has been my solution:

Table: Cities

[Id,Name. …..]

Table: Variables

[CityId, VariableType,Value,Year]
There are 220 variable types

Table: VariableTypes

[Id,Name,Explanation] today 5 registers

Table: Subtypes

[Id,TypeId,Name,Explanation] today 150 registers

Table: Indicators

[subTypeId, CityId, Value,Year]


My idea is that when someone put a new value or changes a value in Variables, calculate all indicators calculated with this variable with triggers.

What do you think about my solution? Is it a good idea?

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-11-07, 03:45
Sasiko Sasiko is offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Please

Please help me!
Reply With Quote
  #3 (permalink)  
Old 01-11-07, 08:11
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by Sasiko
What do you think about my solution?
looks okay to me so far...
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On