By the end of this chapter, you will be able to:
Mastering these skills will help you build reliable databases that support real-world business and organizational needs.
Creating a computerized database is a fundamental skill for ICT technicians tasked with managing data efficiently in diverse Kenyan workplaces. Whether supporting a county government office managing citizen records or a retail business tracking inventory, understanding how to structure data through database objects and fields ensures reliable, accessible, and secure information storage. This chapter addresses the essential components involved in creating a database, focusing on the creation of database objects and the detailed configuration of fields to meet organizational needs.
The creation of database objects forms the backbone of any computerized database system. Database objects are the structural elements that organize, store, and enable interaction with data. For ICT technicians in Kenya, such as those supporting SACCOs or healthcare facilities, mastering database objects ensures that data is logically arranged and easily retrievable, which improves operational efficiency and decision-making.
Database objects are the fundamental building blocks within a database management system (DBMS). They include tables, queries, forms, reports, indexes, and macros, each serving a specific role in data handling and presentation. Understanding these objects enables ICT technicians to design databases that are both functional and user-friendly.
Fields define the structure and type of data stored within each table. Properly specifying fields ensures data integrity, efficient storage, and meaningful retrieval. ICT technicians must understand field properties and types to design databases that meet the precise needs of Kenyan organizations such as banks or educational institutions.
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter explored the creation of computerized databases by first detailing various database objects such as tables, forms, queries, reports, and macros that serve as foundational elements for data management. It examined fields and records, highlighting the importance of data types, field properties, and keys in structuring information effectively. The process of database development was covered extensively, including the creation and linking of tables, as well as building queries, forms, and reports to facilitate data interaction and presentation. Integrity constraints were discussed to ensure data accuracy and consistency, focusing on null values, entity integrity, referential integrity, and general constraints. The chapter also introduced database indexing, differentiating between primary and secondary indexing to optimize data retrieval. Finally, it explained data relationships by describing one-to-one, one-to-many, many-to-one, and many-to-many associations, alongside fundamental database operations such as insert, select, update, and delete. An introduction to SQL was provided with guidance on writing commands and using SQL views to manage and manipulate database information efficiently.
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Computer with database software (e.g. MS Access 2016 or later) | |
| Database template file (empty) |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Computer with database software (e.g. MS Access 2016 or later) | 1 Pc per Candidate |
| 2 | Database template file (empty) | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Create the database and Students table | |||
| Launched database software and created a new database named 'CollegeEnrollment' (Award 1 mark for correct database creation and naming) | 1 | ||
| Created 'Students' table with fields: StudentID, FirstName, LastName, Gender, DateOfBirth, Department (Award 1 mark per correct field name) | 6 | ||
| Assigned appropriate data types to each field (e.g. StudentID: AutoNumber, FirstName: Short Text, DateOfBirth: Date/Time) (Award 1 mark per correct data type assignment) | 6 | ||
| Set StudentID as Primary Key for 'Students' table (Award 1 mark for correct primary key set) | 1 | ||
| Sub-Total | 14 | ||
| TASK 2: Create the Enrollments table | |||
| Created 'Enrollments' table with fields: EnrollmentID, StudentID, CourseCode, EnrollmentDate, Grade (Award 1 mark per correct field name) | 5 | ||
| Assigned appropriate data types to each field (e.g. EnrollmentID: AutoNumber, StudentID: Number, EnrollmentDate: Date/Time, Grade: Number) (Award 1 mark per correct data type assignment) | 5 | ||
| Set EnrollmentID as Primary Key for 'Enrollments' table (Award 1 mark for correct primary key set) | 1 | ||
| Set StudentID as Foreign Key referencing Students.StudentID (Award 1 mark for correct foreign key relationship) | 1 | ||
| Sub-Total | 12 | ||
| TASK 3: Populate tables with provided data | |||
| Entered at least 5 student records into 'Students' table with valid data (Award 1 mark for each correctly entered student record, max 4) | 4 | ||
| Entered at least 5 enrollment records into 'Enrollments' table with valid data linking to Students (Award 1 mark for each correctly entered enrollment record, max 4) | 4 | ||
| Sub-Total | 8 | ||
| TASK 4: Define field properties | |||
| Set field size for text fields (e.g. FirstName and LastName to 50 characters) (Award 1 mark for each correctly set field size) | 2 | ||
| Set required fields to not allow null values where appropriate (Award 1 mark for each correctly set required field) | 2 | ||
| Set default value for Grade field as 0 (Award 1 mark for correct default value set) | 1 | ||
| Sub-Total | 5 | ||
| PRODUCT CHECKLIST | |||
| Database 'CollegeEnrollment' contains two tables with correct fields and data types as specified (Award 5 marks if both tables and fields are correct and complete) | 5 | ||
| Primary and foreign key constraints correctly applied (Award 3 marks if all keys and relationships are correctly defined) | 3 | ||
| Tables populated with at least 5 accurate records each linking properly (Award 4 marks for correctly populated and linked tables) | 4 | ||
| Field properties such as field sizes, required fields, and default values correctly set (Award 3 marks for appropriate field property settings) | 3 | ||
| Sub-Total | 15 | ||
| GRAND TOTAL | 54 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Computer with database application installed | Student and Enrollment Data Sheet |
| Keyboard and Mouse |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Computer with database application installed | 1 Pc per Candidate |
| 2 | Keyboard and Mouse | 1 Set per Candidate |
| 3 | Student and Enrollment Data Sheet | 1 Set per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Create and Save Database | |||
| Launched the database application (Award 1 mark for launching the database application) | 1 | ||
| Created a new database and saved it as 'StudentEnrollment' (Award 1 mark for creating and saving the database with correct name) | 1 | ||
| Sub-Total | 2 | ||
| TASK 2: Create Students Table | |||
| Created table named 'Students' (Award 1 mark for correct table name) | 1 | ||
| Added field 'StudentID' with data type 'AutoNumber' or equivalent (Award 1 mark for field name, 1 mark for correct data type) | 2 | ||
| Set 'StudentID' as Primary Key (Award 1 mark for primary key constraint) | 1 | ||
| Added fields 'FirstName', 'LastName', 'Gender', 'Department' with appropriate data types (Award 1 mark each for field name and correct data type, total 4 marks) | 4 | ||
| Saved the 'Students' table (Award 1 mark for saving the table) | 1 | ||
| Sub-Total | 9 | ||
| TASK 3: Create Enrollment Table | |||
| Created table named 'Enrollment' (Award 1 mark for correct table name) | 1 | ||
| Added field 'EnrollmentID' with data type 'AutoNumber' or equivalent (Award 1 mark for field name, 1 mark for correct data type) | 2 | ||
| Set 'EnrollmentID' as Primary Key (Award 1 mark for primary key constraint) | 1 | ||
| Added field 'StudentID' with data type matching 'Students.StudentID' (Award 1 mark for field name, 1 mark for correct data type) | 2 | ||
| Added fields 'CourseName' and 'Grade' with appropriate data types (Award 1 mark each for field name and correct data type) | 2 | ||
| Set 'StudentID' as Foreign Key referencing 'Students.StudentID' (Award 1 mark for foreign key constraint) | 1 | ||
| Saved the 'Enrollment' table (Award 1 mark for saving the table) | 1 | ||
| Sub-Total | 10 | ||
| TASK 4: Populate Tables with Provided Data | |||
| Entered all provided student records correctly into 'Students' table (Award 1 mark for every 5 correct records entered, max 4 marks) | 4 | ||
| Entered all provided enrollment records correctly into 'Enrollment' table (Award 1 mark for every 5 correct records entered, max 4 marks) | 4 | ||
| Sub-Total | 8 | ||
| TASK 5: Create Queries for Data Retrieval | |||
| Created query listing full names (FirstName + LastName) and Department from 'Students' (Award 2 marks for correct query) | 2 | ||
| Created query displaying CourseName and Grade for each enrolled student using table join (Award 3 marks for correct query with join) | 3 | ||
| Created query showing full names of all male students who are enrolled (Award 3 marks for correct query with gender filter and join) | 3 | ||
| Created query listing students who scored grade above 75 (Award 3 marks for correct query with grade condition) | 3 | ||
| Sub-Total | 11 | ||
| TASK 6: Apply Indexing to Tables | |||
| Created primary index on 'StudentID' in 'Students' table (Award 2 marks for correctly applied primary index) | 2 | ||
| Created secondary index on 'CourseName' in 'Enrollment' table (Award 2 marks for correctly applied secondary index) | 2 | ||
| Sub-Total | 4 | ||
| PRODUCT CHECKLIST | |||
| Database 'StudentEnrollment' contains two linked tables with correct fields and data types (Award 4 marks for correct table structure and field types) | 4 | ||
| Primary and foreign keys correctly established between 'Students' and 'Enrollment' (Award 4 marks for correct key constraints) | 4 | ||
| Tables populated accurately with provided data (Award 4 marks for correct data population) | 4 | ||
| Queries return correct results as per specifications (Award 5 marks for working queries) | 5 | ||
| Indexes applied correctly for primary and secondary keys (Award 3 marks for correctly applied indexes) | 3 | ||
| Sub-Total | 20 | ||
| GRAND TOTAL | 64 | ||
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.