473,416 Members | 1,585 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,416 software developers and data experts.

Database design - incorporate year of a certain event


I have a problem I'm trying to figure out how to resolve in Access. I
have a volunteer database for a project which occurs each year. Currently
I have to go in and wipe out the data each year to start new. I want to
somehow be able to incorporate the year's info into the database.

For instance, keep 2005's information, and add 2006's. So next year I can
pull up 2005 and say "oh yeah, so-and-so participated that year". Any
ideas?

Kevin
Dec 19 '05 #1
11 1544
On Mon, 19 Dec 2005 06:27:13 GMT, Kevin <wi******@hotmail.com> wrote:

I have a problem I'm trying to figure out how to resolve in Access. I
have a volunteer database for a project which occurs each year. Currently
I have to go in and wipe out the data each year to start new. I want to
somehow be able to incorporate the year's info into the database.

For instance, keep 2005's information, and add 2006's. So next year I can
pull up 2005 and say "oh yeah, so-and-so participated that year". Any
ideas?


Kevin, this is such a trivial matter that I must not be understanding
your question. You have a table. That table has information in it.
You add a field called "ProjectYear". You enter a year (2004, 2005,
etc.) into that field.

Your database now has the ability to distinguish based on the year.

What am I missing?

mike
Dec 19 '05 #2
I think maybe I'm missing something, why don't you add a field to the
relevant tables and store the year in it ?

--
Terry Kreft

"Kevin" <wi******@hotmail.com> wrote in message
news:pa****************************@hotmail.com...

I have a problem I'm trying to figure out how to resolve in Access. I
have a volunteer database for a project which occurs each year. Currently
I have to go in and wipe out the data each year to start new. I want to
somehow be able to incorporate the year's info into the database.

For instance, keep 2005's information, and add 2006's. So next year I can
pull up 2005 and say "oh yeah, so-and-so participated that year". Any
ideas?

Kevin

Dec 19 '05 #3
On Mon, 19 Dec 2005 09:31:06 +0000, Mike Preston wrote:
On Mon, 19 Dec 2005 06:27:13 GMT, Kevin <wi******@hotmail.com> wrote:

I have a problem I'm trying to figure out how to resolve in Access. I
have a volunteer database for a project which occurs each year.
Currently I have to go in and wipe out the data each year to start new.
I want to somehow be able to incorporate the year's info into the
database.

For instance, keep 2005's information, and add 2006's. So next year I
can pull up 2005 and say "oh yeah, so-and-so participated that year".
Any ideas?


Kevin, this is such a trivial matter that I must not be understanding your
question. You have a table. That table has information in it. You add a
field called "ProjectYear". You enter a year (2004, 2005, etc.) into that
field.

Your database now has the ability to distinguish based on the year.

What am I missing?

mike


Maybe I'm just thinking about it too much. A field "ProjectYear" would be
fine, but if the database is used year after year, and one volunteer's
data is in there from the previous year, it would already say "2005" for
example. What happens the next year? If I change it to "2006", I no
longer have a record of them taking part in 2005. So, I guess the
question is, given a volunteer table (name, address, volunteer site, etc.)
how do I relate the years participated?

Kevin
Dec 19 '05 #4
"Kevin" <wi******@hotmail.com> wrote in message
news:pa****************************@hotmail.com...
On Mon, 19 Dec 2005 09:31:06 +0000, Mike Preston wrote:

Maybe I'm just thinking about it too much. A field "ProjectYear" would be
fine, but if the database is used year after year, and one volunteer's
data is in there from the previous year, it would already say "2005" for
example. What happens the next year? If I change it to "2006", I no
longer have a record of them taking part in 2005. So, I guess the
question is, given a volunteer table (name, address, volunteer site, etc.)
how do I relate the years participated?

You'd just copy the 2005 record and replace the year in the new record,
shirley?

Keith.
www.keithwilby.com
Dec 19 '05 #5
I think I get it. It sounds like you have a table that lists people and
also contains information about their participation in your program.
You should build a second table. one table will hold a list of the
people, and any information that describes those people. That table
will have an autonumber primary key (check help if those terms are new
to you). The second table will have information regarding the
participation of these people in your probram, including that field
ProjecYear.

For a great discussion of why this is the right approach, check out
Paul Litwin's article "The Fundamentals of Relational Database Design".
It's posted, with Paul's permission, on my old website at
http://www.abcdatabase.com, in the developers's section.

Jeremy

Dec 19 '05 #6
je************@gmail.com wrote in
news:11**********************@g14g2000cwa.googlegr oups.com:
I think I get it. It sounds like you have a table that lists
people and also contains information about their participation in
your program. You should build a second table. one table will hold
a list of the people, and any information that describes those
people. That table will have an autonumber primary key (check help
if those terms are new to you). The second table will have
information regarding the participation of these people in your
probram, including that field ProjecYear.


And this second table will have a record for each person for each
year they participated.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 19 '05 #7
On Mon, 19 Dec 2005 09:05:08 -0800, jeremygetsmail wrote:
I think I get it. It sounds like you have a table that lists people and
also contains information about their participation in your program. You
should build a second table. one table will hold a list of the people, and
any information that describes those people. That table will have an
autonumber primary key (check help if those terms are new to you). The
second table will have information regarding the participation of these
people in your probram, including that field ProjecYear.

For a great discussion of why this is the right approach, check out Paul
Litwin's article "The Fundamentals of Relational Database Design". It's
posted, with Paul's permission, on my old website at
http://www.abcdatabase.com, in the developers's section.

Jeremy


Hit the nail on the head, Jeremy. I'll explore the second table. I do
know what an autonumber key is. ;) I'm no dummy, but I'm no DBA master
either that's for sure. My only practical experience was a college course,
and this database I built a couple of years back. :)

Thanks,

Kevin

Dec 20 '05 #8
On Mon, 19 Dec 2005 09:05:08 -0800, jeremygetsmail wrote:
For a great discussion of why this is the right approach, check out Paul
Litwin's article "The Fundamentals of Relational Database Design". It's
posted, with Paul's permission, on my old website at
http://www.abcdatabase.com, in the developers's section.


All I get is : "this is the new server"
Dec 20 '05 #9
On Mon, 19 Dec 2005 14:13:14 -0600, David W. Fenton wrote:
je************@gmail.com wrote in
news:11**********************@g14g2000cwa.googlegr oups.com:
I think I get it. It sounds like you have a table that lists people and
also contains information about their participation in your program. You
should build a second table. one table will hold a list of the people,
and any information that describes those people. That table will have an
autonumber primary key (check help if those terms are new to you). The
second table will have information regarding the participation of these
people in your probram, including that field ProjecYear.


And this second table will have a record for each person for each year
they participated.


Seems like a lot of repeating data, but I guess that's the way to do
it.

each record holding something like:

id (key from first table)
year
date
site

Now, there's 3 events per year. Should I create a record for each event,
per year, per person? So potentially each person could have 3 records per
year. If I tried to combine one record per year I'd probably end up with
many null values. :\

Kevin
Dec 20 '05 #10
Huh. Seems I was so spacey yesterday I typed in someone else's URL!
Sorry about that. You should have more luck at
http://www.abcdataworks.com.

Jeremy

Dec 20 '05 #11
Kevin <wi******@hotmail.com> wrote in
news:pa**************************@hotmail.com:
On Mon, 19 Dec 2005 14:13:14 -0600, David W. Fenton wrote:
je************@gmail.com wrote in
news:11**********************@g14g2000cwa.googlegr oups.com:
I think I get it. It sounds like you have a table that lists
people and also contains information about their participation
in your program. You should build a second table. one table will
hold a list of the people, and any information that describes
those people. That table will have an autonumber primary key
(check help if those terms are new to you). The second table
will have information regarding the participation of these
people in your probram, including that field ProjecYear.
And this second table will have a record for each person for each
year they participated.


Seems like a lot of repeating data, but I guess that's the way to
do it.


Well, that's natural if you're not going to overwrite last year's
data with this year's. The only alternative is repeating fields
within the record, and that's obviously a bad choice.
each record holding something like:

id (key from first table)
year
date
site

Now, there's 3 events per year. Should I create a record for each
event, per year, per person? So potentially each person could have
3 records per year. If I tried to combine one record per year I'd
probably end up with many null values. :\


Well, now you've changed the definition of the problem.

But I dont' see that there's anything at all wrong with your
description here.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 20 '05 #12

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

Similar topics

5
by: Shock | last post by:
Hello all, I am doing some research on database conversions. Currently, I am interested in any information that would help me convert a database from one schema to another. This could be...
5
by: SuryaPrakash Patel via SQLMonster.com | last post by:
Dear Reader I am trying to design a database. How can I make best Judgement that Indexing (which I am trying to fix during Diagram Desingning process)is ok. I am able to identify the best...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
1
by: Corinne | last post by:
I have a database that contains the details of pupils in a school. What I would like to do may not be possible but I thought I would ask anyway. Each year the pupils move to a different class,...
4
by: lorirobn | last post by:
Hello, I'd be curious to hear other thoughts on my database and table design. My database is for 'space use' in a lodging facility - will hold all spaces, like rooms (lodging rooms, dining...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
3
by: John | last post by:
hi Everybody, I'm working on a Web site that reads a simple database file created in Access. The Web site has an asp page called results.asp and I used Frontpage to design it. Part of the asp...
2
by: John | last post by:
can somebody tell me what's wrong wth this code ? IF Request.QueryString("YEAR") <"" THEN SELECT * FROM tblMatches ORDER BY Year DESC, END IF I'm getting an error message: "Server error:...
47
by: Jo | last post by:
Hi there, I'm Jo and it's the first time I've posted here. I'm in process of creating a database at work and have come a little unstuck.....I'm a bit of a novice and wondered if anyone could...
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...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.