Database Design
Training Module
Exit Begin
Relational Database Design
What is a database?
How is it different than a spreadsheet?
Why would you want to use one?
Quick Links
Try it!
Back Next
Relational Database Design
Navigation
hint
Not sure what to do next? Look for these navigation
hints!
Look for this icon to test your skills in an interactive
exercise!
Back Next
Relational Database Design
What is a database?
Definition:
A database groups data
in separate tables by
related categories. The
tables are linked
together using key
fields in each table.
This structure allows
quick data retrieval and
eliminates entry of
duplicate information.
In
In aa database,
database, aa key
key field
field is
is created
created to
to
A
A Spreadsheet
Spreadsheet is is “flat.”
“flat.” InIn represents
represents thethe person’s
person’s name.
name. TheThe
other
other words,
words, toto track
track multiple
multiple information
information about
about the
the person
person is is
types
types of
of information
information for
for one
one entered
entered inin related
related tables.
tables. The
The
person,
person, you
you must
must enter
enter the
the database
database automatically
automatically links
links the
the
person’s
person’s name
name multiple
multiple times.
times. information
information using
using the
the key
key field.
field. You
You
only
only have
have to
to enter
enter the
the person’s
person’s namename
once!
once!
Show me
Spreadsheet
John Smith
Work: 555-222-8888
Database Home: 555-333-2222
Cell: 555-999-4444
Instead
Instead of
of having
having oneone flat
flat
spreadsheet,
spreadsheet, the
the name
name isis separated
separated
from
from the
the phone
phone numbers
numbers and and linked
linked
by
by the
the NameID.
NameID. EnterEnter the
the name
name
once
once and
and the
the NameID
NameID is is created.
created.
When
When thethe phone
phone numbers
numbers are are
entered,
entered, the
the NameID
NameID automatically
automatically
links
links them
them toto the
the appropriate
appropriate name!
name! Back Next
Relational Database Design
Is there a one-to-many
relationship?
If the answer is yes, then most likely a database will be the best option.
What is one-to-many
relationship?
Relationships
A
A one-to-many
one-to-many relationship
relationship means
means you
you have
have one
one value
value (the
(the person),
person), but
but have
have more
more than
than
one
one type
type of
of information
information (phones)
(phones) to
to track
track for
for that
that person.
person.
Spreadsheet Database
One-to-One Relationship One-to-Many Relationship
If you are only tracking social security numbers, A person can have multiple phone numbers which
then use a spreadsheet! A person can’t have means a person has a one-to-many relationship with
more than one social security number. the phone numbers. To track phone numbers, it is
better to use a database!
What are
• Define Relationships relationships?
PROPERTIES
On passing, 'Finish' button: Goes to Next Slide
On failing, 'Finish' button: Goes to Next Slide
Allow user to leave quiz: At any time
User may view slides after quiz: At any time
User may attempt quiz: Unlimited times
Relational Database Design
PROPERTIES
On passing, 'Finish' button: Goes to Next Slide
On failing, 'Finish' button: Goes to Next Slide
Allow user to leave quiz: After user has completed quiz
User may view slides after quiz: At any time
User may attempt quiz: Unlimited times
Relational Database Design
Summary