Академический Документы
Профессиональный Документы
Культура Документы
Databases
Created by: H.R. Lawrence
What is a database?
An
A relation
Types of Keys
Candidate Any key that can be used as a primary key but was not
chosen to function as such.
Foreign A primary key in one table that appears in another table but
does not function as the primary key
Examples
Creating a Database
Tables
Field Name Each field in the table must have a unique name. For
example, some fields in your school record would be first name, last
name, address, DOB, gender etc.
2.
Data Type This indicates to Access the type of data the field will
contain, such as text, number, date or currency.
3.
4.
Field length (for text) this determines the size of the field.
5.
Use For
Size
Text
Up to 255
characters. The
user can control
the number of
character.
Memo
Up to 65,536
characters.
Number
1, 2, 4, 8 or 16
bytes.
Currency
8 bytes
Date / Time
8 bytes
Use For
Size
AutoNumber
Yes/No (a.k.a.
Boolean or
Logical field)
OLE Objects
Hyperlink
Look Up
Wizard
Up to 1 GigaByte.
Advantages of a database
Quicker