CARA'S TIPS
Computer Studies / Data Processing · Lesson 6

Database models, relational design, Access, SQL and database security

JAMBWAECNECO

What the syllabus asks

JAMB: Section C 3 Database package (definition and examples: dBase, FoxBase, MS Access, Oracle; basic terms: file, record, field, key, form, table; database organisation: hierarchical, network, relational; application areas; features of database format in MS Access; creating a database: define structure, field types, enter and save data; operations: searching, modifying, sorting, reporting, selecting,…

WAEC: Database (definition, examples, basic terms, types of organisation, features of format, steps in creating, basic operations)

NECO: Database (definition, examples, basic terms, types of organisation, features of format, steps in creating, basic operations)

What you will learn

Key points

Start here: Databases and database management systems

A database is an organised collection of related data stored so it can be easily accessed, managed, updated and shared. A school may keep students, staff, subjects, results and fees in one database instead of separate notebooks.

A database management system (DBMS) is the software that creates and manages the database and lets users store, retrieve, update and protect data. Examples: Microsoft Access, Oracle, MySQL, Microsoft SQL Server, PostgreSQL, LibreOffice Base, and older dBase and FoxBase/FoxPro.

Advantages of a database over separate files

Disadvantages

Cost of software, hardware and trained staff; complexity; if the central database fails or is hacked, everything is affected; needs reliable power and backups.

Application areas

SectorExample of database use
EducationStudent records, results, JAMB registration, library catalogues
HealthPatient records, drug stock, laboratory results
BankingCustomer accounts, BVN, transactions
GovernmentNIN identity database, voters’ register, tax records, vehicle licensing
CommerceStock control, customers, online shops
AgricultureFarmer registers, input distribution, crop yields
Home/officeContacts, inventories, mailing lists

Continue this lesson in the free app →

Practice questions

1. A database is
  1. an organised collection of related data
  2. a single document
  3. a spreadsheet formula
  4. an operating system
Show answer

A: an organised collection of related data
Managed by a DBMS.

2. In a relational database, data is stored in
  1. trees only
  2. networks of pointers only
  3. paragraphs
  4. tables
Show answer

D: tables
Rows are records; columns are fields.

3. A primary key must be
  1. blank
  2. a picture
  3. unique for each record
  4. repeated
Show answer

C: unique for each record
It identifies each row.

4. Which database object prints formatted output?
  1. Macro
  2. Report
  3. Table
  4. Form
Show answer

B: Report
Reports present data for printing.

5. A query is used to
  1. retrieve records that meet given conditions
  2. draw pictures
  3. format disks
  4. type letters
Show answer

A: retrieve records that meet given conditions
E.g. all students in SS3.

Key words

Database
An organised collection of related data.
DBMS
Database management system: software for creating, maintaining and using databases.
Table
A set of rows and columns holding data about one entity.
Entity
A person, thing or event about which data is stored, e.g. Student.
Attribute
A property of an entity; a column/field in a table.
Tuple
A row (record) in a relational table.
Primary key
A field (or fields) with a unique value identifying each record.
Foreign key
A field in one table that refers to the primary key of another table.
Composite key
A primary key made of two or more fields together.
Relationship
A link between tables based on matching key values.
Form
A screen layout for entering and viewing records one at a time.
Query
A request to retrieve or change data that meets given conditions.
Learn Database models, relational design, Access, SQL and database security step by step, free.
The Cara's Tips app teaches every topic from the very basics, with quick checks, worked examples and exam practice. It works offline.
Open this lesson in the free appDownload for Android