473,406 Members | 2,705 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,406 software developers and data experts.

Normailising Tables

Hello,

I am trying to find a way to normalise my database but am having
difficulty in ways to do this, as my table is over 100 fields.

A lot of the information is duplicated for previous years. This is
the bit I think I can put in to another table.

My table looks a bit like this:

Name Job First Year Second Year Third Year
Bob 1 01/02/04 01/02/03 01/02/02
Ian 2 02/02/04 02/02/03 03/02/02

I have a button on a form that moves all the data down one field each
financial year, creating a blank space for the new year i.e.

Name Job First Year Second Year Third Year
Bob 1 01/02/04 01/02/03
Ian 2 02/02/04 02/02/03

I have PK's in the table to make sure that the names will never be
duplicated so there is a referential integrity link.

Any ideas or any pointers will be really helpful.

Thanks

Stephen
Nov 13 '05 #1
2 1102
"Stephen" <ba*********@hotmail.com> wrote in message
news:a4**************************@posting.google.c om...
Hello,

I am trying to find a way to normalise my database but am having
difficulty in ways to do this, as my table is over 100 fields.

A lot of the information is duplicated for previous years. This is
the bit I think I can put in to another table.

My table looks a bit like this:

Name Job First Year Second Year Third Year
Bob 1 01/02/04 01/02/03 01/02/02
Ian 2 02/02/04 02/02/03 03/02/02


The years should be separate rows not columns. Normalization is not always
about adding more tables.

Name Job Year
Bob 1 01/02/04
Bob 1 01/02/03
Bob 1 01/02/02
Ian 1 01/02/04
Ian 1 01/02/03
Ian 1 01/02/02

Change your PK to be a combination of Name and Year (both are bad names for
fields BTW since these are reserved words in Access).

This structure requires NO re-design when you add new years and can easily
be filtered to show any one or more years.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
Rick,

Sorry in delay in getting back - but nice one.

Thanks
Nov 13 '05 #3

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
59
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
5
by: rdemyan via AccessMonster.com | last post by:
I have a need to add another field to all of my tables (over 150). Not data, but an actual field. Can I code this somehow. So the code presumabley would loop through all the tables, open each...
4
by: db2admin | last post by:
Hello, I want to plan rearranging tables in our database according to business areas. say all tables in business area A will be in seperate tablespace or tablespaces. I am planning to monitor...
25
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...

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.