Information Communication Technology  ·  Level 6
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 requirements.
  • Understand how to organize data effectively within a database.
  • Design database structures that meet specific needs.
  • Apply correct procedures to build functional database components.

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.

2.1 Creation of database objects

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.

2.1.1 Database objects

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.

Tables

  • Definition and Role: Tables store the raw data in rows and columns, representing entities such as customers, products, or transactions. They are the core repository where all information is held.
  • Structure: Each table consists of records (rows) and fields (columns), with each field representing a data attribute.
  • Example: In a county government office, a table might store citizen details including name, ID number, and address, enabling efficient record keeping.
  • Data Integrity: Tables enforce data types and constraints to maintain accuracy.
  • Relationships: Tables can be linked through keys to represent real-world associations, supporting complex queries.

Queries

  • Purpose: Queries retrieve specific data by filtering, sorting, or calculating based on criteria.
  • Types: Select queries extract data, action queries modify data, and parameter queries request user input.
  • Use Case: A SACCO might use queries to generate reports on member loan balances.
  • Efficiency: Queries optimize database performance by limiting data retrieval to relevant records.
  • Customization: Queries can join multiple tables to produce comprehensive datasets.

Forms

  • Function: Forms provide a user-friendly interface for data entry and editing.
  • Design: They can include controls like text boxes, drop-down lists, and buttons.
  • Application: In a hospital setting, forms simplify patient registration.
  • Validation: Forms can enforce input rules to prevent errors.
  • Navigation: Well-designed forms improve user experience and reduce training time.

Reports

  • Role: Reports format and summarize data for presentation or printing.
  • Features: They support grouping, sorting, and calculated fields.
  • Example: A retail business uses reports to monitor monthly sales performance.
  • Automation: Reports can be scheduled to run automatically for regular updates.
  • Decision Support: Reports provide insights critical for management decisions.

Indexes

  • Purpose: Indexes speed up data retrieval by creating pointers to data locations.
  • Types: Unique indexes prevent duplicate entries, while non-unique indexes improve search speed.
  • Impact: Proper indexing enhances query performance in large databases.
  • Considerations: Excessive indexing can slow down data updates.
  • Maintenance: Indexes require periodic rebuilding to maintain efficiency.

Macros

  • Definition: Macros automate repetitive tasks within the database.
  • Capabilities: They can open forms-run queries, or generate reports.
  • Use Case: Automation of monthly report generation at a university database system.
  • Programming: Macros require logical sequencing of actions.
  • Limitations: Complex automation may require transitioning to scripting languages.

2.1.2 Fields

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.

Field Types and Data Formats

  • Text Fields: Store alphanumeric characters, suitable for names, addresses, and descriptions. Typically limited to a set number of characters to optimize storage.
  • Number Fields: Store numeric data for calculations, such as quantities or financial figures. Different number types include integers, decimals, and currency.
  • Date/Time Fields: Capture dates and times, essential for tracking transactions, appointments, or deadlines.
  • Boolean Fields: Store binary data such as Yes/No or True/False, often used for status indicators.
  • Memo/Long Text Fields: Accommodate large text entries like notes or comments, without a strict character limit.

Field Properties

  • Field Size: Determines the maximum length or precision of data stored, impacting storage efficiency and data validation.
  • Format: Controls the display of data, such as currency symbols or date formats, enhancing readability.
  • Default Value: Specifies a preset value for new records to reduce data entry errors.
  • Validation Rules: Define constraints on acceptable data, preventing invalid entries.
  • Required Field Setting: Ensures critical fields are not left empty, maintaining database completeness.

Primary Keys and Unique Identifiers

  • Purpose: A primary key uniquely identifies each record in a table, preventing duplicates.
  • Composition: Can be a single field or a combination of fields.
  • Example: A hospital patient database uses a unique patient ID as a primary key.
  • Indexing: Primary keys automatically create an index to speed up access.
  • Referential Integrity: Primary keys link to foreign keys in related tables to maintain data consistency.

Field Naming Conventions

  • Clarity: Field names should be descriptive to convey their content clearly.
  • Consistency: Use uniform naming styles across tables to simplify database management.
  • Avoid Reserved Words: Prevent conflicts with DBMS keywords.
  • Length: Keep names concise yet meaningful to facilitate coding and querying.
  • Example: Using "EmployeeID" instead of ambiguous terms like "ID" improves clarity in a payroll system.

Handling Null Values and Defaults

  • Null Values: Represent unknown or missing data, allowing flexibility in data entry.
  • Impact: Nulls can affect query results and calculations if not handled properly.
  • Default Values: Provide fallback data to reduce null occurrences.
  • Use in Validation: Proper configuration ensures data accuracy and usability.
  • Example: In an educational database, a null grade might indicate a course not yet completed.

Practice Questions

  1. Describe the role of tables and queries as database objects and explain how they interact in a computerized database system. (10 marks)
  2. Explain the importance of primary keys in a database and how they contribute to data integrity, providing an example from a Kenyan public service context. (10 marks)
  3. Discuss five different field types used in database tables and illustrate their appropriate use in a financial institution’s database. (15 marks)
  4. Outline the significance of field properties such as validation rules and default values in maintaining database quality, with reference to a hospital management system. (10 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 crucial phase in creating an effective computerized database system. In Kenya, ICT technicians often engage in database development for diverse sectors such as county government offices managing citizen records, hospitals maintaining…

🔒2.3 Data relationships

Data relationships describe how different tables or entities in a database associate with one another. These relationships define the logical connections between data elements, allowing the database system to enforce rules and maintain consistency. In Kenyan S…

Chapter Summary

This 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.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Which database object is primarily used to store raw data in rows and columns? (2 marks)
  2. Define the purpose of a query in a computerized database system. (3 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 in a computerized database system used by a county government office in Kenya. (4 marks)
  2. Differentiate between forms and reports as database objects, citing examples from a Kenyan hospital setting. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Create and define tables with fields and data types in a computerized database

Information Communication Technology · Level 6
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 a database named 'CollegeEnrollment' with two tables: 'Students' and 'Enrollments' defining fields with appropriate data types and setting primary and foreign keys.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with database software (e.g. MS Access 2016 or later)
Database template file (empty)
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with database software (e.g. MS Access 2016 or later)1 Pc per Candidate
2Database template file (empty)1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
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-Total14
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-Total12
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-Total8
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-Total5
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-Total15
GRAND TOTAL54
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Establish and Link Student and Enrollment Tables with Keys and Indexing

Information Communication Technology · Level 6
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 a computerized database named 'StudentEnrollment' with two linked tables: Students (StudentID, FirstName, LastName, Gender, Department) and Enrollment (EnrollmentID, StudentID, CourseName, Grade) applying primary and foreign keys plus indexing for efficient data retrieval.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with database application installedStudent and Enrollment Data Sheet
Keyboard and Mouse
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with database application installed1 Pc per Candidate
2Keyboard and Mouse1 Set per Candidate
3Student and Enrollment Data Sheet1 Set per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
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-Total2
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-Total9
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-Total10
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-Total8
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-Total11
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-Total4
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-Total20
GRAND TOTAL64
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

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

Create a free account
🔒Create and manipulate queries in a student enrollment databasePractical 3
🔒Design and create interactive data entry forms for a computerized databasePractical 4
🔒Generate detailed reports summarizing student enrollment and performancePractical 5
🔒Implement database integrity constraints in a student enrollment systemPractical 6
🔒Create and Use Macros to Automate Database TasksPractical 7
🔒Define and implement data relationships in a computerized databasePractical 8
🔒Develop a Complete Student Enrollment Database SystemPractical 9
🔒Write and Execute Basic SQL Commands on Student Enrollment DatabasePractical 10
🔒Create and manage SQL views for student enrollment dataPractical 11
🔒Apply Primary and Secondary Indexing on Student Database for Performance OptimizationPractical 12
🔒Design Queries to Enforce Referential Integrity in Student Enrollment DatabasePractical 13
🔒Create Data Entry Forms with Validation Rules in a Computerized DatabasePractical 14
🔒Design Reports with Grouped and Summarized Data in a Computerized DatabasePractical 15
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

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

18 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 requirements.
  • Understand how to organize data effectively within a database.
  • Design database structures that meet specific needs.
  • Apply correct procedures to build functional database components.

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.