Database Design - Additional Information
Database Design - Additional Information
basics
Access for Office 365 Access 2019 Access 2016 Access 2013 Access
2010 Access 2007
Top of Page
What is good database design?
Certain principles guide the database design process. The
first principle is that duplicate information (also called
redundant data) is bad, because it wastes space and
increases the likelihood of errors and inconsistencies. The
second principle is that the correctness and completeness of
information is important. If your database contains incorrect
information, any reports that pull information from the
database will also contain incorrect information. As a result,
any decisions you make that are based on those reports will
then be misinformed.
Top of Page
The design process
The design process consists of the following steps:
Look at each table and decide how the data in one table is
related to the data in other tables. Add fields to tables or
create new tables to clarify the relationships, as necessary.
Analyze your design for errors. Create the tables and add a
few records of sample data. See if you can get the results
you want from your tables. Make adjustments to the design,
as needed.
Top of Page
Determining the purpose of your
database
It is a good idea to write down the purpose of the database
on paper — its purpose, how you expect to use it, and who
will use it. For a small database for a home based business,
for example, you might write something simple like "The
customer database keeps a list of customer information for
the purpose of producing mailings and reports." If the
database is more complex or is used by many people, as
often occurs in a corporate setting, the purpose could easily
be a paragraph or more and should include when and how
each person will use the database. The idea is to have a well
developed mission statement that can be referred to
throughout the design process. Having such a statement
helps you focus on your goals when you make decisions.
Top of Page
After gathering this information, you are ready for the next
step.
Top of Page
Top of Page
Turning information items into
columns
To determine the columns in a table, decide what
information you need to track about the subject recorded in
the table. For example, for the Customers table, Name,
Address, City-State-Zip, Send e-mail, Salutation and E-mail
address comprise a good starting list of columns. Each
record in the table contains the same set of columns, so you
can store Name, Address, City-State-Zip, Send e-mail,
Salutation and E-mail address information for each record.
For example, the address column contains customers’
addresses. Each record contains data about one customer,
and the address field contains the address for that customer.
Once you have refined the data columns in each table, you
are ready to choose each table's primary key.
Top of Page
Specifying primary keys
Each table should include a column or set of columns that
uniquely identifies each row stored in the table. This is often
a unique identification number, such as an employee ID
number or a serial number. In database terminology, this
information is called the primary key of the table. Access
uses primary key fields to quickly associate data from
multiple tables and bring the data together for you.
In some cases, you may want to use two or more fields that,
together, provide the primary key of a table. For example, an
Order Details table that stores line items for orders would
use two columns in its primary key: Order ID and Product ID.
When a primary key employs more than one column, it is
also called a composite key.
Top of Page
Top of Page
From the Order Details table, you can determine all of the
products on a particular order. You can also determine all of
the orders for a particular product.
After incorporating the Order Details table, the list of tables
and fields might look something like this:
Top of Page
▪ If the two tables have the same subject, you can probably
set up the relationship by using the same primary key in
both tables.
▪ If the two tables have different subjects with different
primary keys, choose one of the tables (either one) and
insert its primary key in the other table as a foreign key.
See if you can use the database to get the answers you
want. Create rough drafts of your forms and reports and see
if they show the data you expect. Look for unnecessary
duplication of data and, when you find any, alter your
design to eliminate it.
▪ Product ID
▪ Name
▪ Product ID1
▪ Name1
▪ Product ID2
▪ Name2
▪ Product ID3
▪ Name3