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

normalizing data

does anyone have suggestions on what to read ot get a better understanding of db normalization? i am having issues with my relationships and need a better undertsnaidng. Thanks.
Aug 7 '06 #1
2 1693
MMcCarthy
14,534 Expert Mod 8TB
You only actually need to know 1st, 2nd and 3rd Normal Form.

1st Normal Form
A table is in first normal form if all the key attributes have been defined and it contains no repeating groups.

For example, a customer can place many orders and each order can be for many products.

Therefore, orders are a repeating group for customers and products are a repeating group for orders.

A second table would be created for orders. This table would contain a foreign key reference to the Customer tables unique primary key.

A third table would be created for Products. This table would contain a foreign key reference to the Order tables unique primary key.

2nd Normal Form
A relation is in 2nd Normal Form if it contains no repeating groups as above and every field in the table (excluding foreign keys) is dependent on the Primary key of that table (i.e. there are no partial dependencies).

This is only an issue if the primary key is made up of more than one field. If any field is dependent on only one part of the primary key then the relation is not in 2nd Normal Form.

For example, if your primary key is made up of two foreign keys to the primary keys of two other tables. If any field in the table is only dependent on one of the foreign keys it needs to be removed.

3rd Normal Form
A relation is in 3rd Normal Form when it is in 1st Normal Form, 2nd Normal Form and when 'All non-key attributes are dependent on the key, the whole key and nothing but the key'.

For example, if there are fields in the table which are dependent on a foreign key but not on the primary key they need to be removed.

-------------------
Hope this helps!!
Aug 8 '06 #2
comteck
179 100+
There are some good online tutorials. Under Google, just type "Access Tutorial". Here is one that has 3 entire chapters on relationships, and/or Referential Integrity.

http://www.functionx.com/access/index.htm

Good Luck.
comteck
Aug 8 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Evan Escently | last post by:
Hi, I've laid out a _very_ simple database that tracks my artwork the table 'works' looks like: +---------+----------+------------+------------+-------------+ | work_id | title | media ...
3
by: Megan | last post by:
hello everybody- i'm normalizing a database i inherited. i'm breaking up a huge table named case into several smaller tables. i am creating several many to many relationships between the new...
3
by: gsb58 | last post by:
Hi! Our database, an inventory/order system in ms access 2000, is working just fine. However, the other day, one of our employees suggested that it should be possible to do some advanced work...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
3
by: bbernieb | last post by:
Hi, All, Is it possible to access a variable inside of a data binding, without the variable being out of scope? (Note: On the DataBinder line, I get an error message that says "Name 'i' is...
5
by: Kevin | last post by:
I'm almost done working on my relationships and the database groundwork - I'm stuck on one part. I have the relationships and tables as shown here:...
8
by: Richard Hollenbeck | last post by:
I have a recipe database that I've been building but I haven't yet put any of the ingredients in because of a little problem of normalization. If I build a table of ingredients, all the recipes...
5
by: imani_technology_spam | last post by:
I re-designed a predecessor's database so that it is more properly normalized. Now, I must migrate the data from the legacy system into the new one. The problem is that one of the tables is a...
17
by: Frank Swarbrick | last post by:
Consider the following... - A customer table with a customer number column as the primary key, and also a column called SHORTNAME. - An account table with an account number column as the primary...
4
by: Nicodemas | last post by:
Hello, I have run into an issue and need someone to explain a process to me in laymen's terms so I can understand it. I have two tables in MS Access. They are define thus: Table: Products ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.