473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Table Setup Help Needed

Dear NG,

In an earlier post to the group, I was trying to find and easy way to
calculate %change estimates between years for a group of variables. My
data looks like this:

Year County VarA VarB VarC etc.
1982 Athens 900 50 11.7
1983 Athens 700 40 21

While I ultimately figured out how to do it with IIF and some year
criteria (which actually went pretty well), it was suggested that I
restructure my data table.

It was suggested that I restructure my table to look like the
following:

1982 Athens VarA 900
1982 Athens VarB 50
1982 Athens VarC 11.7

This got me thinking about table design a bit more and I was hoping I
could get some general guidance about setting up tables. Needless to
say, I'm new to Access. I've used SAS for years and I guess I never
really gave my tables that much thought simply because I knew how to
manipulate the data so well.

Anyhow, the following Harvest Table is one of many tables that I built
in Access.

Year County RegulationType District Season Bucks (m) Does (f)
1995 Athens 19 3 Crossbow 45
55

Season can take 1 of 5 values, District 1 of 5, RegulationType 1 of 9,
County n=88 and year can range from 1977 on

Another table would look like the following:

Year County District DVAs(deer-car crashes) RegisteredVehicles

1995 Athens 1 389 560,897
Finally, another table might be:

Year County District PermitType1 PermitType2
So, the first question is, do I keep all of these tables separate or
somehow combine them into one. There are a few instances where I will
bring all of these data together, but most often, I will simply be
looking at these data over time and computing changes from one year to
the next. There are times where I may want to group counties into 1 of
5 districts or other zones and look at changes in accidents, harvest,
or complaints from one year to the next.

Perhaps I should keep the tables separate and just restructure them to
facilitate my most common analyses. For instance, my harvest table
might look something like the following after restructuring.

County Year Sex Season District RegulationType
If I wanted to combine the harvest and deer-car crash data the
resulting table might look like... a mess! I can't see how these two
tables could be combined without a lot of missing values.

Any how, if you can follow this, I would really appreciate any guidance
you wish to share with me.

Let me say in closing that 9 of 10 queries that I will run against
these data will be computing annual changes and plotting these over
time.

Thanks in Advance...
Mike

Sep 5 '06 #1
2 1329
Takeadoe wrote:
Dear NG,
Hi Mike, please see responses inline.
In an earlier post to the group, I was trying to find and easy way to
calculate %change estimates between years for a group of variables. My
data looks like this:

Year County VarA VarB VarC etc.
1982 Athens 900 50 11.7
1983 Athens 700 40 21

While I ultimately figured out how to do it with IIF and some year
criteria (which actually went pretty well), it was suggested that I
restructure my data table.

It was suggested that I restructure my table to look like the
following:

1982 Athens VarA 900
1982 Athens VarB 50
1982 Athens VarC 11.7

This got me thinking about table design a bit more and I was hoping I
could get some general guidance about setting up tables. Needless to
say, I'm new to Access. I've used SAS for years and I guess I never
really gave my tables that much thought simply because I knew how to
manipulate the data so well.

Anyhow, the following Harvest Table is one of many tables that I built
in Access.

Year County RegulationType District Season Bucks (m) Does (f)
1995 Athens 19 3 Crossbow 45
55

Season can take 1 of 5 values, District 1 of 5, RegulationType 1 of 9,
County n=88 and year can range from 1977 on

Another table would look like the following:

Year County District DVAs(deer-car crashes) RegisteredVehicles

1995 Athens 1 389 560,897
Finally, another table might be:

Year County District PermitType1 PermitType2
I think you're on the right track. You have modeled three entities:
Harvests, Crashes, and Permits. There's some room for improvement I
suspect, read on...
>

So, the first question is, do I keep all of these tables separate or
somehow combine them into one. There are a few instances where I will
bring all of these data together, but most often, I will simply be
looking at these data over time and computing changes from one year to
the next. There are times where I may want to group counties into 1 of
5 districts or other zones and look at changes in accidents, harvest,
or complaints from one year to the next.
Since you have so many entities to model, separate tables are the way to
go. You mention counties Vs. districts. This is a good lead: In a couple
of your tables you have county and district. Do counties belong to
districts? If yes, then district is dependent on county. There's no need
to store this dependent information twice in a table in RDB design. Keep
it in a separate table.
Perhaps I should keep the tables separate and just restructure them to
facilitate my most common analyses. For instance, my harvest table
might look something like the following after restructuring.

County Year Sex Season District RegulationType
I doubt you should structure your tables based on analysis needs. You
can join related elements using queries to get at the data you want.
Unless you are processing data warehouse volumes (which is unlikely),
carefully setting up your tables using good normalization practice will
serve you well for your current and future needs.
>

If I wanted to combine the harvest and deer-car crash data the
resulting table might look like... a mess! I can't see how these two
tables could be combined without a lot of missing values.
Why not? As you proposed above, these two tables have common elements
(year, county/district). You can join on these commonalities and, if
desired, summarize by the specifics. RDB design makes this relatively
easy. A "flat" table design with everything in one row does not.
>
Any how, if you can follow this, I would really appreciate any guidance
you wish to share with me.

Let me say in closing that 9 of 10 queries that I will run against
these data will be computing annual changes and plotting these over
time.
I think you are on the right path Mike. I also think you would benefit
from taking a couple hours to study on "database normalization" (Google
that, with the quotes) to familiarize yourself with the concepts --
although I do believe you are well on the way to embracing this on your own.
>
Thanks in Advance...
Mike
Good luck

--
Smartin
Sep 7 '06 #2
Smartin,

Thank you very much for your time and assistance. I have just printed
40 pages worth of articles on database normalization and will dig in
tonight (bed time reading!).

Thanks again. I will do my best to PayForward!

Mike
Smartin wrote:
Takeadoe wrote:
Dear NG,

Hi Mike, please see responses inline.
In an earlier post to the group, I was trying to find and easy way to
calculate %change estimates between years for a group of variables. My
data looks like this:

Year County VarA VarB VarC etc.
1982 Athens 900 50 11.7
1983 Athens 700 40 21

While I ultimately figured out how to do it with IIF and some year
criteria (which actually went pretty well), it was suggested that I
restructure my data table.

It was suggested that I restructure my table to look like the
following:

1982 Athens VarA 900
1982 Athens VarB 50
1982 Athens VarC 11.7

This got me thinking about table design a bit more and I was hoping I
could get some general guidance about setting up tables. Needless to
say, I'm new to Access. I've used SAS for years and I guess I never
really gave my tables that much thought simply because I knew how to
manipulate the data so well.

Anyhow, the following Harvest Table is one of many tables that I built
in Access.

Year County RegulationType District Season Bucks (m) Does (f)
1995 Athens 19 3 Crossbow 45
55

Season can take 1 of 5 values, District 1 of 5, RegulationType 1 of 9,
County n=88 and year can range from 1977 on

Another table would look like the following:

Year County District DVAs(deer-car crashes) RegisteredVehicles

1995 Athens 1 389 560,897
Finally, another table might be:

Year County District PermitType1 PermitType2

I think you're on the right track. You have modeled three entities:
Harvests, Crashes, and Permits. There's some room for improvement I
suspect, read on...


So, the first question is, do I keep all of these tables separate or
somehow combine them into one. There are a few instances where I will
bring all of these data together, but most often, I will simply be
looking at these data over time and computing changes from one year to
the next. There are times where I may want to group counties into 1 of
5 districts or other zones and look at changes in accidents, harvest,
or complaints from one year to the next.

Since you have so many entities to model, separate tables are the way to
go. You mention counties Vs. districts. This is a good lead: In a couple
of your tables you have county and district. Do counties belong to
districts? If yes, then district is dependent on county. There's no need
to store this dependent information twice in a table in RDB design. Keep
it in a separate table.
Perhaps I should keep the tables separate and just restructure them to
facilitate my most common analyses. For instance, my harvest table
might look something like the following after restructuring.

County Year Sex Season District RegulationType

I doubt you should structure your tables based on analysis needs. You
can join related elements using queries to get at the data you want.
Unless you are processing data warehouse volumes (which is unlikely),
carefully setting up your tables using good normalization practice will
serve you well for your current and future needs.


If I wanted to combine the harvest and deer-car crash data the
resulting table might look like... a mess! I can't see how these two
tables could be combined without a lot of missing values.

Why not? As you proposed above, these two tables have common elements
(year, county/district). You can join on these commonalities and, if
desired, summarize by the specifics. RDB design makes this relatively
easy. A "flat" table design with everything in one row does not.

Any how, if you can follow this, I would really appreciate any guidance
you wish to share with me.

Let me say in closing that 9 of 10 queries that I will run against
these data will be computing annual changes and plotting these over
time.

I think you are on the right path Mike. I also think you would benefit
from taking a couple hours to study on "database normalization" (Google
that, with the quotes) to familiarize yourself with the concepts --
although I do believe you are well on the way to embracing this on your own.

Thanks in Advance...
Mike

Good luck

--
Smartin
Sep 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: paul kölle | last post by:
hi all, I noticed that setUp() and tearDown() is run before and after *earch* test* method in my TestCase subclasses. I'd like to run them *once* for each TestCase subclass. How do I do that. ...
4
by: Paul .V. | last post by:
I need to setup two tables with default information. First off I need a company table. Quite simple. Name, Address, phone, tax number and so on. So I have setup that table with the fiels...
6
by: Rosy | last post by:
I am setting up a DB for our company and am at a loss on the best way to handle some of the records. I have a table (tblJobs) that houses the basic info on the job (when, where, what, who)....
3
by: shahram.shirazi | last post by:
Hi guys, I was wondering if someone could help me a bit here. Im trying to desing an electronic register system for a school. In terms of the table design, I obviously need a Student Details...
2
by: news reader | last post by:
Hi, Does anoone of you know if there is already a simple application doing something like this. I would enhance / tune the missing features, but would like to avoid to start from scratch or...
7
by: Bob | last post by:
I want my aps to the insalled as was the old way under c:\Program files\Myapp or give the user the choice as before of installing the app in another folder location. That again no longer seems...
9
by: Joshua.Buss | last post by:
I am trying to move a record from one linked table to another within access, but I'm a complete beginner to VBA and don't know exactly where to begin. I have an access file that has the two...
7
by: jp45678 | last post by:
Hi, been trying to do this for literally hours, cannot for the life of me remember how to do it. I have one table for Clients, just surname, forename, address, contact number etc, and I have added...
2
by: cj | last post by:
We have a legacy accounting system (not developed in house) here that happens to be written in Visual FoxPro. One of the tables has an index that is actually a coded function COMPANY1 ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.