2. Chap 1: Database Concepts
Definitions of common concepts
Other concepts
Database vsTraditional File System
Intro to SQL
3. Data/Data Item:
It is regarded as the smallest element
in a database system.
It is the smallest indivisible element or
component in a database system.
4. Database:
This can be viewed as the collection of
related data.
It can also be said to be a repository
of data.
…base
5. Database Management System:
This is a software that manages
database files.
It is a shared and integrated computer
structure that stores data.
Operational Data
…..inputs
Meta Data
…..query generated data
i.e. data about data
Output Data
…..outputs i.e.
Report etc.
6. ROW: Is defined as a collection of data items belonging to an entity. It
represents RECORD of such an entity.
ID Matric Name Sex Reg.
No
Age
001 140404001 Ade Peters M 789 45
002 140404002 Anthony Joshua M 790 27
003 140404003 EkwesiliCecilia F 791 56
004 140404004 Aisha Buhari F 792 63
Record
belonging
to AJ!
7. COLUMN: Is defined as a collection of data items belonging to
different entities. It represents FIELD in such entities.
ID Matric Name Sex Reg.
No
Age
001 140404001 Ade Peters M 789 45
002 140404002 Anthony Joshua M 790 27
003 140404003 EkwesiliCecilia F 791 56
004 140404004 Aisha Buhari F 792 63
Matric
FIELD
common to
all entities
8. TABLE: Is defined as a collection of related RECORDS belonging to
entities in such a table/file.
ID Matric Name Sex Reg.
No
Age
001 140404001 Ade Peters M 789 45
002 140404002 Anthony Joshua M 790 27
003 140404003 EkwesiliCecilia F 791 56
004 140404004 Aisha Buhari F 792 63 TABLE
9. DATABASE: Is defined as a collection of logically related
TABLES/FILES.
ID Matric Name Sex Reg.
No
Age
001 140404001 Ade Peters M 789 45
002 140404002 Anthony Joshua M 790 27
003 140404003 EkwesiliCecilia F 791 56
TABLE 1 /
FILE 1:
studfile
ID Matric Score Grade
001 140404001 67 B
002 140404002 54 C
003 140404003 89 A
TABLE 2 /
FILE 2:
csc212ex
…both stored
into one (1)
DATABASE
10. …using MS-ACCESS
So, put on your system NOW and LOAD your
MS-ACCESS package.
11. TAKE HOME 1
Database VS Traditional File System: Comment on the
‘Fight’
Create a database named STAFFDB; in it have two
files: staffpro and staffacco. While staffprofile depicts
the bio-data (typical of a CV) of staff, staffacco stores
info about accomplishment of staff (e.g. laurels won
etc.).
Create a database named STUDDB containing
studreg (registration data of all students in AAUA).
12. TAKE HOME 2
Consider a Customer and a Producer. Ponder
computationally and come up with the necessary
fields for both entities for the design of your tables.
Further work on these entities by populating each
with 20 records.
From the Customer and Producer tables, fire queries
to detect : a. Customers and Producers residing in
Lagos; b. Producers that major in electronics;
c. Producers that have more than one branch.
Generate Report for (a) Customers (b) Producers
(c) the meta data generated