J
John D
I got an Access DB from our State Controller's Office (SCO) they use to
produce their "Annual Special Districts Report". SCO simply provides the data
in their annual report with very little analysis. I want to analyze districts
comparatively but the SCO table design makes it very difficult.
There are 16 tables in the SCO DB each of which contain data from one of
their specifics reports in their large "Annual Report" (Income Statement,
Long-Term Debt detail, Organizational information, etc.). Each table has one
record for each "Organization-Fiscal Year" (the Primary Key) with anywhere
from 10 to 150 other fields each of which is the annual value of an account
(or other type of data) reported on each specific report.
An example is the Water District Income Statement Table. The table's primary
key is two fields - OrgID and FY (Fiscal Year). Those are followed by about
100 fields each of which is the yearly reported value in an account - such as
WATSALE_RESIDENTIAL, WATSALE_BUSINESS, OPEXP_PUMPING, NON_OPREV_FEDERALGRANT,
NET_INCOME, etc.
I believe having each account's yearly value in one record for every
"Organization - Fiscal Year" makes all sorts of things very difficult to do.
What I'd like to do - I think - is "deconstruct" the large Water District
Income Statement table into a table with the structure:
OrgID
FY
AccountNo
Value
The first 3 fields would a a combined Primary Key.
(I also think the "subtotal" and "total fields" such as NET_INCOME should be
calculated in queries rather than held as a field value in a table - but
that's a different issue.)
HERE'S THE PROBLEM: I haven't yet figured out how to break the big table
into this "one record for one account value" table.
I've "messed around" with a Make Table query. I'd think it should create a
new table for each account name (such as WATSALE_RESIDENTIAL) with a primary
key of "OrgID-FY-AcctNo". (I'd want to provide my own system of account
numbers.) But if I move the existing Primary Key to a new table with one
account value, I don't think I can send that same Primary Key to a second
table with a different account in that Make Table Query. If I could do that
I'd create, say, 100 new "single account" tables and then append them one to
another to create the large unified table. That would be a lot of work by
hand, but if I also have to create and run separate Make Table Queries for
each of the hundreds of separate accounts in the SCO DB - that's way too much
work it seems.
Can anyone point me in the direction I need to go?
Thanks in advance.
John D
produce their "Annual Special Districts Report". SCO simply provides the data
in their annual report with very little analysis. I want to analyze districts
comparatively but the SCO table design makes it very difficult.
There are 16 tables in the SCO DB each of which contain data from one of
their specifics reports in their large "Annual Report" (Income Statement,
Long-Term Debt detail, Organizational information, etc.). Each table has one
record for each "Organization-Fiscal Year" (the Primary Key) with anywhere
from 10 to 150 other fields each of which is the annual value of an account
(or other type of data) reported on each specific report.
An example is the Water District Income Statement Table. The table's primary
key is two fields - OrgID and FY (Fiscal Year). Those are followed by about
100 fields each of which is the yearly reported value in an account - such as
WATSALE_RESIDENTIAL, WATSALE_BUSINESS, OPEXP_PUMPING, NON_OPREV_FEDERALGRANT,
NET_INCOME, etc.
I believe having each account's yearly value in one record for every
"Organization - Fiscal Year" makes all sorts of things very difficult to do.
What I'd like to do - I think - is "deconstruct" the large Water District
Income Statement table into a table with the structure:
OrgID
FY
AccountNo
Value
The first 3 fields would a a combined Primary Key.
(I also think the "subtotal" and "total fields" such as NET_INCOME should be
calculated in queries rather than held as a field value in a table - but
that's a different issue.)
HERE'S THE PROBLEM: I haven't yet figured out how to break the big table
into this "one record for one account value" table.
I've "messed around" with a Make Table query. I'd think it should create a
new table for each account name (such as WATSALE_RESIDENTIAL) with a primary
key of "OrgID-FY-AcctNo". (I'd want to provide my own system of account
numbers.) But if I move the existing Primary Key to a new table with one
account value, I don't think I can send that same Primary Key to a second
table with a different account in that Make Table Query. If I could do that
I'd create, say, 100 new "single account" tables and then append them one to
another to create the large unified table. That would be a lot of work by
hand, but if I also have to create and run separate Make Table Queries for
each of the hundreds of separate accounts in the SCO DB - that's way too much
work it seems.
Can anyone point me in the direction I need to go?
Thanks in advance.
John D