Académique Documents
Professionnel Documents
Culture Documents
Grade: 9
Objectives
Field
Part of a record on a database. Computer databases are arranged, searched and sorted by
field.
Record
A collection of fields on data related to one entity.
Primary key
In order for a table to qualify as a relational table it must have a primary key.
The primary key consists of one or more columns whose data contained within is used to
uniquely identify each row in the table. You can think of the primary key as an address. If the
rows in a table were mailboxes, then the primary key would be the listing of street addresses.
Foreign Keys
A foreign key is a set of one or more columns in a table that refers to the primary key
in another table. There isnt any special code, configurations, or table definitions you
need to place to officially designate a foreign key.
Relationship
A relationship, in the context of databases, is a situation that exists between two
relational database tables when one table has a foreign key that references the
primary key of the other table. Relationships allow relational databases to split and
store data in different tables, while linking disparate data items.
Task A
Towards the top left of the screen you will see a "Blank Database"
icon. Click this icon to bring up the Blank Database side bar on the
right hand side of the screen. This is where you will enter details
about the database file that you are about to create.
3. Enter filename for your Access 2007 database
Begin by entering the name that you want to call the database in
the filename textbox.
Task B
Create Access Table
Before you save the table you will need to choose the Primary Key,
which in this case is ID. To do this, select the ID row by clicking on it,
and then simply click the primary key symbol on the Ribbon.
You can now save the table by clicking the save icon on the top left
of the screen above the Access Ribbon. To view your table select
DATASHEET VIEW from the VIEWS group under the DESIGN TAB. This
brings up the datasheet view of the table that you have just created.
You should see your field headings running across the top of the
table.
NB just ignore the column underneath the heading ADD NEW FIELD.
We created all the fields we needed in design view.
You have now entered the first record in the table - record 1 for John
Jones aged 35. You can now press the return key and the record will
save automatically. You are now ready to enter the second record on
the next row - TRACEY SMITH 25. Press return and then fill in the
data for the last record we are going to do for now - ANNE McNEIL 30
Your datasheet table should now look like this:
Use the information you collected in the last class to create and populate
a table using the field s which you were given. These are Last name, first
name, age, favorite subject and favorite sport.