Re: DB design and normalization

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Michael Malinsky (joeqcpa_at_yahoo.com)
Date: 06/15/04


Date: Tue, 15 Jun 2004 08:54:25 -0400

Well, let's see if I can give you something like what you are looking for...

First I would have a table containing my trial balance:

    tblTrialBalance
        AccountID
        AccountDesc
        Balance
        GroupID

The account ID above would be a primary key and would be the account number
(since you cannot have duplicate account numbers in a trial balance, it
doesn't make sense to create another field for the PK). The GroupID field
would be a foreign key which would correspond to tblGroups which I define
below. Now that I'm sitting here thinking about it, I think I already
answered part of my question. But moving on, the tblGroups table would
represent pages and lines in a report. So maybe I'd have a table that looks
like this:

    tblGroups
        GroupID
        GroupPage
        GroupLine
        GroupLineDesc
        GroupSubLine
        GroupSubLineDesc
        GroupColumn

If you look at my original post, maybe you can now see where I'm trying to
go with this. My question regarding normalization concerns the fact that
(obviously) each page would have more than one line so to reduce redundancy,
would I create another table with the page names then use a PageID foreign
key? Again, thinking about this while typing, it makes sense from a memory
standpoint so maybe that is the way to go. I'm not sure where to go from
there. Obviously, each page of the report would have a line 1 and more than
one page could have a subline 1.1, but making separate tables to sort all of
this out doesn't seem to make sense. Also, depending on the page of the
report I'm trying to end up with, each page has varying number of columns,
so page 1 could have 5 columns while page 2 might have only 2. So would I
have a GroupLine/GroupSubline in tblGroups to accomodate each column? I
know normalization requires elimination of redundancies to some extent, but
I'm not sure how far I have to go to create a normalized database that would
be easy to maintain.

In the end, I would hopefully be able to run an update query to update the
GroupID in tblTrialBalance then run a query to generate the report I need
based on joining tblTrialBalance and tblGroups.

I hope this helps you understand the question.

TIA
Mike

-- 
Michael J. Malinsky
Pittsburgh, PA
"I am a bear of very little brain, and long
   words bother me." -- AA Milne, Winnie the Pooh
"Jeff Boyce" <JeffBoyce_IF@msn.com-DISCARD_HYPHEN_TO_END> wrote in message
news:uIw13KnUEHA.2524@TK2MSFTNGP12.phx.gbl...
> Michael
>
> I also suffer from limited perception -- I'm having trouble visualizing
the
> underlying data from which you wish to create a report.
>
> I will point out, however, that a report is really not the same as the
data.
> If you have designed your data tables to reflect your report
specifications,
> I predict serious difficulties making it work!
>
> Can you provide a brief summary of your table structure -- something along
> the lines of:
>
>   tblAccount
>     AccountID
>     MainAccount#
>     SubAccountID
>
>   tblSubAccount
>     SubAccountID
>     SubAccountTitle
>
> ...
>
> -- 
> More info, please ...
>
> Jeff Boyce
> <Access MVP>
>


Relevant Pages

  • Re: Subreport Problem
    ... report is sorting the account numbers. ... more if you think it's possible a customer could have more than 24 accounts. ...  I have a subreport in the detail section of the "receipt" ...
    (microsoft.public.access.reports)
  • Re: Multiple Column Report - esp for Duane Hookom
    ... annual total for that account - it's already in essense a "sum". ... Income Statement - and for my users it needs to. ... ACC2000: How to Print Labels on the Left Margin of a Report: This is the ... The State Controller (SCO) produces Annual Financial Reports for all Special ...
    (microsoft.public.access.reports)
  • Re: Need help creating a report in access
    ... to generate a report for work and require the following information to ... account#, name, address, etc. ... invalid account number ... Create a query using the wizard. ...
    (microsoft.public.access.gettingstarted)
  • Reporting Service connection failure
    ... account is used to connect to the database. ... Create a minimally privileged user account in the domain ... The report server cannot open a connection to the report server ...
    (microsoft.public.sqlserver.security)
  • RE: Securty Audit Correlating
    ... exporting both(events and tickets) to a SQL/Access DB ... > viewer logs, so you can set filters for specific ... >>Currently we are outsourcing our account creation, ... >>After that generate a report. ...
    (Focus-Microsoft)