473,509 Members | 11,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automatic historical archiving of data for comparison

My database consists of information which is updated every quarter.
Forms will compare data from the present quarter to quarters past. I
need a way to make the database save a copy of itself every quarter and

then be able to have a form refer to that data through a comparison.
The historical data set would be created at the end of each quarter and

lock in all the values from that quarter. For example this quarter
(1st quarter 2006) I would need to refer to 1st quarter 2005 for a
comparison. Obviously a set of data for 1st quarter 2005 hasn't been
created yet so I would have to put data in manually but eventually once

the data was populated I would want it to do the comparison
automatically.

I realize this is an involved problem but if anyone could just give me
a general suggestion to get me moving in the right direction I would
really be grateful!!

Feb 21 '06 #1
3 1941
"deltauser2006" <sd**@georgetown.edu> wrote in
news:11**********************@o13g2000cwo.googlegr oups.com:
My database consists of information which is updated every
quarter. Forms will compare data from the present quarter to
quarters past. I need a way to make the database save a copy
of itself every quarter and

then be able to have a form refer to that data through a
comparison. The historical data set would be created at the
end of each quarter and

lock in all the values from that quarter. For example this
quarter (1st quarter 2006) I would need to refer to 1st
quarter 2005 for a comparison. Obviously a set of data for
1st quarter 2005 hasn't been created yet so I would have to
put data in manually but eventually once

the data was populated I would want it to do the comparison
automatically.

I realize this is an involved problem but if anyone could just
give me a general suggestion to get me moving in the right
direction I would really be grateful!!

Add two fields to the table one for year, one for quarter. No
need to archive anything, just filter using a pair of queries.

You can even just store a date and calculate the year and
quarter from those if necessary. Access can handle several
million records.
--
Bob Quintal

PA is y I've altered my email address.
Feb 22 '06 #2
Here's the thing though, the data is constantly changing so basically
I'm looking for snapshots through time of the database. I'll explain
further. The data is for apartment rents and other information. So we
are constantly surveying and getting new rents (we do that every
quarter). Every quarter all the data has changed slightly. When we do
analysis we want to be able to look back at all the data from, lets say
a year ago. I would need to make a printout that had, for example:
Current Average Rent vs. Average Rent During This Quarter Last Year.
What I am trying to do is automate this process. I want the report to
recognize that it is currently the 1st quarter, that it should use the
data currently in the database for that number and that it should pull
last years comparison from the 1st quarter '05 data (Which obviously
would take 1 year of data being stored before it would function
seamlessly). Any tips on attacking that? I really appreciate any help
I can get. Thanks

Feb 24 '06 #3
"deltauser2006" <sd**@georgetown.edu> wrote in
news:11**********************@v46g2000cwv.googlegr oups.com:
Here's the thing though, the data is constantly changing so
basically I'm looking for snapshots through time of the
database. I'll explain further.
The data is for apartment rents and other information. So we are constantly surveying
and getting new rents (we do that every quarter).

Every quarter all the data has changed slightly. When we do
analysis we want to be able to look back at all the data from,
lets say a year ago. I would need to make a printout that
had, for example: Current Average Rent vs. Average Rent During
This Quarter Last Year. What I am trying to do is automate
this process. I want the report to recognize that it is
currently the 1st quarter, that it should use the data
currently in the database for that number and that it should
pull last years comparison from the 1st quarter '05 data
(Which obviously would take 1 year of data being stored before
it would function seamlessly). Any tips on attacking that? I
really appreciate any help I can get. Thanks

your data from '05 has to be in the same table as for '06 for
this to work effectively. If you have a date of effectivity for
the data, it becomes easy to do this sort of thing.

The way I would build it is that you have a parent record for an
apartment, and a related set of child records that contains the
stuff that changes for that apartment, the date, the amount of
rent, whether it is rented or vacant, that sort of thing. Every
time (quarter) you get new information, a new record is added to
the child table.

When the time comes for statistical analysis, you use the date
of the child record to filter into quarters.

QuarterOfYear: (Month(Effectivitydate)\3)+1

to compare this year's data to last, create a query that
groups on apartmentType, quarterofyear (as defined above) and
year of effectivitydate

Compare this year to 3 years ago? the query doesn't change, only
the filter parameters, (year = 2006 or year = 2003) instead of
2006 or 2005. The filter for QuarterOfYear would be constant at
1
Want to compare last quarter's data instead, reorder year and
quarter. then filter on (Year =2005 and QuarterofYear = 4) or
(Year = 2006 and QuarterofYear = 1)

If you insist on seperate tables for every year, you'll curse
yourself sooner than later.

--
Bob Quintal

PA is y I've altered my email address.
Feb 25 '06 #4

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

Similar topics

1
3125
by: rottytooth | last post by:
A general data design question: We have data which changes every week. We had considered seperating historical records and current records into two different tables with the same columns, but...
10
2583
by: Paulo Jan | last post by:
Hi all: Let's say I'm designing a database (Postgres 7.3) with a list of all email accounts in a certain server: CREATE TABLE emails ( clienteid INT4, direccion VARCHAR(512) PRIMARY KEY,...
3
3773
by: Erwin | last post by:
I have a work assignment in which I have to put a historical archive within access which can be used for trendlines etc. It contains data about month, service percentages and numbers. Within a...
3
1881
by: Francesc | last post by:
Hi, I'm new at this newsgroup and I want do ask some questions and opinions about this subject. I'm developing an application focused in a very specific task: clean and labelling text documents...
2
1842
by: Lawdawg via AccessMonster.com | last post by:
I have been task with writing an Inventory Tracking program for my group and ran into a small problem. I have two numbers used in issuance of inventory (1) and item number (2) a serial number both...
1
2174
by: sandip | last post by:
Hi All, Can someone please help me with good and easy-to-use data archiving tools for DB2 database? Does anyone have previous experience with IBM DB2 Data Archive Expert tool? Is this a...
4
2497
by: Paul H | last post by:
Could some one give me some pointers on basic archiving techniques? I have developed several databases but never been faced with this issue. Here is the basic scenario.. Suppose I have the...
3
4875
bvdet
by: bvdet | last post by:
Following is an example that may provide a solution to you: """ Function makeArchive is a wrapper for the Python class zipfile.ZipFile 'fileList' is a list of file names - full path each name...
3
1644
nurikoAnna
by: nurikoAnna | last post by:
how to data archiving? I need you help I have no idea how to start coding data archiving . Please help
0
7137
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...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.