Written by Ravi Prakash
|
|
Friday, 29 June 2007
Category MS Access 2007 - Queries.
|
| |
| General Information |
| |
 |
| |
Database normalization
Relationships in Access 2007
Create queries
Open a recently used database
Open a database through Microsoft Office Access button
Close a database
|
| |
 |
| |
| Database normalization |
| |
|
Database normalization is the process to organize the data of a data base. It includes the creation of tables and the establishment of relations among them according to designed rules by eliminating the incoherent redundancy and dependencies. |
| |
|
Redundancy data waste disk space and create maintenance problems. If there is to change data that exist in more of a place, they are due to change exactly
of the same form in all his locations. A change in the direction of a client is much easier to implement if the data only store in the table Clients and
not in some other place of the data base. |
| |
|
Microsoft Access 2007 uses the relational model for the database management which is based on the logic of predicates where the data is represented by
mathematical n-ary relations. Each relation is represented by the composition of fields stored in tables that represent these n-ary relations. |
| |
|
To transform a database in a relational database there are several normalization forms to apply: |
| |
| First normal form |
| |
| 1) Eliminate the repeated groups of the individual tables. |
| |
| 2) Create an independent table for each related data set. |
| |
| 3) Identify each data set related with a primary key. |
| |
| Second normal form |
| |
| 4) Create independent tables for sets of values that are applied to several records. |
| |
| 5) Relate these tables to an external key. |
| |
| Third Normal form |
| |
| 6) Eliminate the fields that do not depend on the key. |
| |
| Record values that are not part of the key of that record do not belong to the table. In general, whenever the content of a group of fields can be
applied to more of an only registry of the table, it considers placing these fields in an independent table. |
| |
| There are two additional normal forms (fourth and fifth) but both are rarely used. |
| |
| Relationships in Access 2007 |
| |
| 7) Open TutorialDB. |
| |
| 8) Click on Database Tools and select Relationships. Remember that the database must be normalized before. |
| |
|
| Illustration 1: Normalize the database and create relationships between tables and data. Click here to view larger image. |
| |
| A blank screen will appear. You must add tables. |
| |
| 9) Right click on the empty screen and select the Show table menu item. |
| |
|
| Illustration 2: Normalize the database and create relationships between tables and data. Click here to view larger image. |
| |
|