Discussion Locked

Access DB setup

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm setting up an Access applicaiton, & am having trouble figuring out a few basics. I have 2 development guides & a user's guide, & still haven't found a good explanation of HOW to normalize the info before table creation. (I've never done this before but my company finds me the most qualified to do it...)

Thx very much!!

5 replies

by bob sellman

Try this approach for designing your database:
1. Identify your main data. By this I mean the data that is needed. Call this your primary table (the one that will change frequently).

2. Look for repetitive data in the primary table which has an identifier and description. These should be put in a lookup table and only the identifier stored. In some cases you might want to create an internal ID# if there is no identifier.

For example, employee number, last name, first name, address, etc. would be put in a separate table ("Employees") with employee number as the primary key. Only the employee number would be stored in the primary table. Same idea applies if you have job # and job title, and so on.

3. Another consideration is repetitive data that might be better in a second table.

Example: Item1, Item2, Item3. If you have these in the primary table you have a problem when a record needs more than 3 items. Create an ID (autonumber column) for the primary table, then a second table with the ID of the primary table and an Item column (and cost, date, whatever else is needed). That way you will have one record in the second table for each item for each primary table record. Many may need one item, a few may need 5 or 10 or more items.

A simple example of normalized data would be:
Table1: EmpID, JobID, LocID
EmpTable: EmpID, Names, etc
JobTable: JobID, Title, Level
LocTable: LocID, Loc Name

If an employee's name changes, you just change it in EmpTable and from then on every place the name is displayed the new name will be shown.

Good luck.

by e.rick

Database normalization is simply a series of steps followed to design a database that allows for efficient access and storage of data. The net effect of which is a reduction in data redundancy and the changes of data becoming inconsistent.

A design is said to be normalized when it meets certain constraints. There are five generally accepted steps to a fully normalized database, but most practical designs go to the third normal form (3NF).

First Normal Form (1NF) eliminates repeating groups by putting them into separate tables and connecting them with a one-to-many relationship.

2NF eliminates partial key dependencies (all fields should be dependent on the whole key).

3NF eliminates dependencies on non-key fields.

2NF & 3NFare accomplished by putting the fields in separate tables with a key value to identify them. The key value is used as an attribute in the parent table (a foreign key). At 3NF all non-key fields are dependent on the whole key and nothing but the key.

For a brief, but more detailed, discussion of this that gives some common sense (and easy to follow) examples see the following article in Microsoft's product support pages:

http://support.microsoft.com/support/kb/articles/Q100/1/39.ASP

This discussion is closed to new replies.