I.C.
T
Grade 8
Name: _Darin Fadi ___________________, class: ____8C_________
WORKSHEET
CHAPTER 2: COLLECTING INFORMATION
TASK 3
QUESTION 1:
What is a database?
__A data base is a system for organizing data.
________________________________________________________________
__________________________________________________________________
__________________________________________________________________
QUESTION 2:
Define the following terms.
• Fields
__is a set of data values, of the same data base, in a table.
____________________________________________________________________________
______________________________________________________________________________
• Records
______ is all of the data or information about one person or one
thing.________________________________________________________________________
______________________________________________________________________________
• Primary key
____is a special relational database table column.
__________________________________________________________________________
______________________________________________________________________________
• Relationships
1
__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._________________________________________________________________________
___
______________________________________________________________________________
ICT Grade 8
QUESTION 3:
Define A distinct object that is to be represented in the database:
_ represented by the use of opaque types.
_____________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
QUESTION 4:
Think of a one-to-many and a many-to-one relationship from your life.
Depending on what you choose, think of the appropriate fields for your tables
and create a small database on paper. Choose the appropriate primary keys
from each table. For the many-to-many relationships create an extra table to
link your other tables.
One-to-many:
____In a one-to-many relationship, one record in a table can be associated with one or more
records in another table. For example, each customer can have many sales orders.
A one-to-many relationship looks like this in the relationships graph:
__________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
2
Order ID
Customer ID Name
Customer ID
Many-to-many:
__A many-to-many relationship occurs when multiple records in a table are associated with
multiple records in another table. For example, a many-to-many relationship exists between
customers and products: customers can purchase various products, and products can be purchased
by many
customers._____________________________________________________________________
_______
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
ICT Grade 8
Student ID Enrollment ID
Last Name Student ID
First Name Class ID