Information Communication Technology  ·  Level 5
Computerized Database Systems
Chapter 2: Create a computerized database
📚 3 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • create computerized database objects accurately based on user needs
  • follow user requirements carefully to build the right database components
  • organize database objects clearly for easy use and management
  • ensure your database design matches what users expect

Mastering these skills helps you build efficient databases that make managing information easier and more reliable in any workplace.

2.1 Creation of Database Objects

Creating a database involves defining various objects that structure and organize data logically and efficiently. In the Kenyan ICT sector, database objects underpin systems such as hospital patient records, SACCO member databases, and school management systems. Proper creation of these objects determines how data is stored, accessed, and maintained, directly affecting system performance and data integrity.

2.1.1 Database Objects

Database objects are the fundamental components within a database that hold or reference data and define its structure. They form the building blocks that enable an ICT Technician to organize data systematically. In practice, objects such as tables, queries, forms, and reports are used extensively in various sectors like banking (e.g., KCB’s customer transaction systems) and county government record-keeping.

Tables

Tables are the core database objects where data is stored in rows and columns. Each row represents a record, and each column represents a field or attribute. For example, a table in a hospital management system might include patient details such as name, ID number, and admission date. Tables must be carefully designed to avoid redundancy and ensure data normalization.

Queries

Queries enable users to retrieve and manipulate data from one or more tables by specifying criteria. They are essential for generating reports or extracting subsets of data for decision-making. At a retail business, queries might be used to find all customers who purchased a specific product within a given period.

Forms

Forms provide a user-friendly interface for entering, modifying, and viewing data stored in tables. They simplify data entry and reduce errors, which is critical in environments like schools or universities where staff may not be database experts.

Reports

Reports organize and present data in a structured format for analysis or presentation. They are often used for official documentation, such as financial reports in SACCOs or inspection summaries in NEMA.

Indexes

Indexes improve the speed of data retrieval operations by creating pointers to data in tables. They are particularly important in large databases, such as those used by county governments, to enhance performance and reduce query response times.

2.1.2 Fields

Fields are individual data categories within a table that define the type of data stored. Each field has specific properties that determine how data is entered, displayed, and validated. Effective field design is crucial for data accuracy and consistency in computerized databases used in Kenyan organizations.

Field Data Types

Field data types specify the nature of data a field can hold, such as text, number, date/time, or currency. Selecting appropriate data types prevents errors and optimizes storage. For instance, a date field in an insurance company database must be set to a date/time type to allow accurate sorting and calculations.

Field Size and Format

Field size limits the amount of data that can be stored in a field, which is important for controlling data length and ensuring uniformity. For example, a field for phone numbers in a county government database might be restricted to 10 digits to match the standard Kenyan format.

Field Properties and Validation Rules

Fields can have properties like default values, required status, and validation rules to enforce data integrity. Validation rules prevent entry of invalid data, such as negative quantities in an inventory system at a hotel.

Primary Key Fields

A primary key is a unique identifier for each record in a table, ensuring that no duplicate records exist. In a cooperative society database, the member ID field often serves as the primary key to uniquely identify each member.

Relationships Between Fields

Fields in different tables can be linked through relationships, such as one-to-many or many-to-many, enabling complex data models. For example, in a university database, a student’s ID field in the student table relates to the enrolment table to track courses taken.

Practice Questions

  1. Explain the role of tables and queries as database objects in an ICT environment. (6 marks)
  2. Describe five key properties of fields in a computerized database and their importance. (10 marks)
  3. Discuss how forms and reports enhance user interaction with a database, providing examples from Kenyan institutions. (8 marks)
  4. Define a primary key field and explain its significance with an example. (6 marks)
The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒2.2 Database Development

Database development is a critical phase in creating computerized database systems, especially for ICT technicians in Kenya who support diverse sectors such as banking, healthcare, and county governments. This phase involves designing and implementing the data…

🔒2.3 Data relationships

In computerized database systems, understanding data relationships is fundamental to designing efficient and meaningful databases. For ICT Technicians in Kenya, grasping how data entities connect enhances database integrity, reduces redundancy, and improves qu…

Chapter Summary

This chapter explored the creation of computerized databases by first examining the various database objects such as tables, forms, queries, reports, and macros, detailing their roles in organizing and managing data. It then delved into the structure of fields and records, highlighting the importance of data types, field properties, and keys in ensuring data accuracy and accessibility. The development process was covered extensively, including the creation and linking of tables, as well as the formulation of queries, forms, and reports to facilitate data interaction and presentation. Essential integrity constraints like nulls, entity integrity, referential integrity, and general constraints were discussed to maintain data consistency and reliability. The chapter also addressed database indexing techniques, differentiating between primary and secondary indexing to optimize data retrieval. Finally, it examined various data relationships including one-to-one, one-to-many, many-to-one, and many-to-many, alongside fundamental data manipulation operations such as insert, select, update, and delete. An introduction to SQL was provided, focusing on writing SQL commands and creating SQL views to enable efficient database querying and management.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Which database object is primarily used to store data in rows and columns? (1 mark)
  2. Explain the purpose of a form in a computerized database system. (2 marks)
🔒20 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Explain the role of tables as database objects in managing student records at a Kenyan polytechnic. (4 marks)
  2. Differentiate between forms and reports in a computerized database system used by a county government office. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Create and Define Database Tables for a Student Enrollment System

Information Communication Technology · Level 5
Computerized Database Systems
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Create and define database tables for Student and Courses with specified fields and data types as per the given requirements.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with MS Access 2016 or later installedUSB flash drive (4GB minimum)
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with MS Access 2016 or later installed1 Pc per Candidate
2USB flash drive (4GB minimum)1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Create and Define Database Tables
Opened MS Access and created a new blank database
(Award 2 marks for opening and creating new database correctly)
2
Created 'Students' table with fields: StudentID (AutoNumber, PK), FirstName (Short Text), LastName (Short Text), DateOfBirth (Date/Time), PhoneNumber (Short Text)
(Award 1 mark for each correct field name and data type, 1 mark for setting primary key)
4
Created 'Courses' table with fields: CourseID (AutoNumber, PK), CourseName (Short Text), CourseCode (Short Text), Credits (Number)
(Award 1 mark for each correct field name and data type, 1 mark for setting primary key)
4
Set appropriate field properties: Field sizes (e.g. FirstName and LastName 50 chars), Required fields, Format for DateOfBirth, Validation rules if any
(Award marks for correctly setting field sizes and properties)
3
Entered at least 3 sample records in each table with valid data
(Award 1 mark for each table having 3 valid records entered)
3
Sub-Total16
PRODUCT CHECKLIST
Students table structure matches required fields with correct data types and primary key
(Award 4 marks if all fields and data types are correct and primary key is set)
4
Courses table structure matches required fields with correct data types and primary key
(Award 4 marks if all fields and data types are correct and primary key is set)
4
Sample records correctly entered with no data type errors or missing required fields
(Award 4 marks if sample records are complete and error-free)
4
Sub-Total12
GRAND TOTAL28
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Establish Primary and Foreign Keys in a Computerized Database

Information Communication Technology · Level 5
Computerized Database Systems
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Establish primary keys on the provided tables and create foreign key relationships to enforce entity and referential integrity in the computerized database as per the provided schema.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with MS Access 2019 installedPre-prepared database file with tables and sample data
Mouse and KeyboardUser manual for MS Access 2019
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with MS Access 2019 installed1 Pc per Candidate
2Pre-prepared database file with tables and sample data1 Pc per Candidate
3User manual for MS Access 20191 Pc per Candidate
4Mouse and Keyboard1 Set per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Create Primary Keys
Opened the database file correctly
(Award 1 mark for opening the correct database file)
1
Identified appropriate fields for primary keys
(Award 1 mark for each correctly identified primary key field in two tables)
2
Set primary keys on the identified fields
(Award 1 mark for each primary key correctly set in three tables)
3
Saved the changes after setting primary keys
(Award 1 mark for saving changes properly)
1
Sub-Total7
TASK 2: Establish Foreign Key Relationships
Opened the relationships window
(Award 1 mark for opening relationships window)
1
Selected appropriate tables for relationships
(Award 1 mark for selecting correct tables involved in foreign key relationships)
2
Created foreign key relationships enforcing referential integrity
(Award 1 mark for each correct foreign key relationship created with referential integrity enforced in four relationships)
4
Saved the relationships and closed the window
(Award 1 mark for saving and closing the relationships window properly)
1
Sub-Total8
TASK 3: Test and Validate Keys
Entered test data to validate primary key uniqueness
(Award 1 mark for entering data and 1 mark for detecting duplicate key error)
2
Entered test data to validate foreign key constraints
(Award 1 mark for entering data and 1 mark for detecting referential integrity error)
2
Corrected errors detected during testing
(Award 1 mark for correcting primary key error and 1 mark for correcting foreign key error)
2
Executed queries to confirm integrity enforcement
(Award 2 marks for running queries that confirm key constraints are enforced)
2
Sub-Total8
TASK 4: Print Database Schema and Relationships Report
Printed tables with primary keys indicated
(Award 4 marks for clear printout showing primary keys)
4
Printed relationships report showing foreign keys and referential integrity
(Award 4 marks for clear printout showing foreign key relationships)
4
Sub-Total8
PRODUCT CHECKLIST
Primary keys correctly set on all required tables
(Award 4 marks if all primary keys are correctly established)
4
Foreign key relationships correctly established with referential integrity
(Award 6 marks if all foreign keys and referential integrity constraints are correct)
6
Test data correctly enforces entity and referential integrity
(Award 6 marks if test data validates the keys and constraints effectively)
6
Sub-Total16
GRAND TOTAL47
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒Link Tables to Create Relationships in a Computerized DatabasePractical 3
🔒Create and Execute Database Queries for Customer and Orders TablesPractical 4
🔒Design and Create User-Friendly Database FormsPractical 5
🔒Design and Generate Database Reports for Student RecordsPractical 6
🔒Develop Macros to Automate Database Tasks in MS AccessPractical 7
🔒Apply Integrity Constraints and Handle Nulls in a Computerized DatabasePractical 8
🔒Implement Primary and Secondary Indexing on a Computerized Student DatabasePractical 9
🔒Create and Manage SQL Views for Employee DatabasePractical 10
🔒Write and Execute Basic SQL Commands on a Student DatabasePractical 11
🔒Develop a Student Registration DatabasePractical 12
🔒Design and Implementation of Many-to-Many Relationships in a Computerized DatabasePractical 13
🔒Set Field Properties for Data Validation in a Student DatabasePractical 14
🔒Create complex SQL queries involving joins, conditions, and sortingPractical 15
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 18 questions Start quiz ▾
0%
0 / 2
🔒

16 more in this section.

Create a free account
Am I competent?

At the start of this chapter we promised you would be able to:

  • create computerized database objects accurately based on user needs
  • follow user requirements carefully to build the right database components
  • organize database objects clearly for easy use and management
  • ensure your database design matches what users expect

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.