Re: Combining tables - UNUSUAL REQUEST

From: '69 Camaro (ForwardZERO_SPAM.To.69Camaro_at_Spameater.orgZERO_SPAM)
Date: 09/24/04


Date: Fri, 24 Sep 2004 16:56:48 -0700

Hi.

It's not an unusual request at all. It's very common for new Access
developers to realize that their original table design needs some refinement
in order to accommodate the needs of the growing database application.
That's how database developers get "experience." When designing new
database structures, they know from experience that certain table designs
will not be expandable, as in your case.

> The tricky part for me is to not add NEW COLUMNS, just
> more data under the current columns.

If you want to append all of the records to the January table, then the
table structure will need to add either one or two more columns: one column
for the month and possibly one column for the year (in case you may want the
expand the database structure to be even more flexible in the future).
Otherwise, you won't be able to differentiate which month (and year) the
data was retrieved from if you append all records to the January table.

An alternative is to keep the records in the 12 tables, but to create a
UNION query which retrieves all records from each of these tables and
creates a calculated column indicating the month, depending upon which table
holds the records. This can become unwieldy, especially if you add "month"
tables to the database for the next year's data. A single table holding the
data would be preferable, as you have already decided.

Your only other alternative is to denormalize your database by using a
multivalued column, and that would introduce anomolies and data retrieval
problems, so it is definitely not recommended.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)

"Parthenon" <anonymous@discussions.microsoft.com> wrote in message
news:0c9e01c4a271$0139dcf0$a501280a@phx.gbl...
> Hopefully not too unusual, but I am not very familiar with
> Access!
>
> I have many tables, each with one month's worth of data.
> These tables have the exact same column fields, but
> obviously different data underneath.
>
> I'd like to combine these tables with 12 months of data
> into ONE table for the whole year. Basically just append
> my January table with the rest of the months.
>
> The tricky part for me is to not add NEW COLUMNS, just
> more data under the current columns.
>
> Any ideas? Sorry if this is a simple request.
>
> Thanks in advance!



Relevant Pages

  • Re: MV Keys
    ... is implemented by developers using an interface to a dbms. ... want dbms tool designers to suggest they will be making design ... a database would not be production software without having a means ...
    (comp.databases.theory)
  • C# programmer looking for a job
    ... Software Development including Desktop, Client/Server and Database ... Practical skills in object oriented design and design patterns ... XML, Oracle, CVS, VSS, Delphi, bug tracking. ... Developed in Delphi5; ...
    (misc.immigration.usa)
  • Re: O/R Mapper
    ... | - create E/R model from niam model ... classes that contain, not only data, but also functionality as OO design is ... a database where they do not exist in the object model is corrupting the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Date range on reports
    ... > box to your report with a control source like: ... >> In the Database window (Database window: The window that appears when you ... >> In the New Form dialog box, click Design View, and click OK. ... >> Begin by clicking Macro Names to display the Macro Name column. ...
    (microsoft.public.access.reports)
  • Re: O/R Mapper
    ... > as OO design is not just about data in isolation. ... the proper tooling/methods are used which fit with the approach chosen. ... >> of the reality to come to the proper result. ... > constraints into a database where they do not exist in the object ...
    (microsoft.public.dotnet.languages.csharp)