Software Development  ·  Level 5
Computer Operations
Chapter 3: Maintain computerized database
📚 4 Topics
⚑ What you will be able to do

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

  • collect computerized database user requirements effectively by following work instructions.
  • design computerized database schemas correctly to meet specific task needs.
  • create computerized database objects accurately according to task requirements.
  • perform data manipulation correctly to update and manage the database as needed.

Mastering these skills will help you build and maintain reliable databases that support smooth and efficient work in any computer-related trade.

Computerized databases are critical assets in modern workplaces across Kenya, supporting efficient data management in sectors such as healthcare, education, finance, and public administration. Maintaining a computerized database requires a thorough understanding of user needs and careful design of the database structure to ensure data integrity, accessibility, and security. This chapter explores the process of collecting user requirements and designing database schemas, enabling professionals across industries to manage data effectively and support organizational goals.

3.1 Computerised database user requirements collection

Collecting user requirements is the foundation of a successful computerised database system. It involves understanding the specific data needs, workflows and objectives of the people who will use the database before any table is designed. For example, a software developer asked to build a stock database for a hardware shop must first learn what the shopkeeper records daily, which reports are needed and who is allowed to change prices. The process relies on communication and analysis so that the database matches real tasks.

3.1.1 Introduction to database

A database is an organised collection of data stored electronically so that it can be accessed, managed and updated easily. It holds data in structured formats such as tables, which makes retrieval and manipulation efficient. A developer building a membership system for a gym, for example, keeps member details, payments and attendance in one database instead of in separate paper registers.

3.1.1.1 Key concepts

Every database project uses a small set of core terms. A developer must use them accurately when talking to users and when documenting requirements.

  • Data: Raw facts that have not yet been processed, such as a product name, a quantity of 40 or a price of Ksh 350.
  • Information: Data that has been processed or organised so that it has meaning, such as a report showing the total value of stock in Ksh.
  • Database: A structured, shared collection of related data stored electronically for one or more applications.
  • Database management system (DBMS): The software that creates, stores, protects and retrieves data in a database. Examples are MySQL, PostgreSQL and Microsoft Access.
  • Metadata: Data about data, such as the name, type and size of each field in a table.
  • Data integrity: The accuracy and consistency of data. For example, an order cannot refer to a customer who does not exist.
  • Data redundancy: Unnecessary repetition of the same data in several places, which wastes space and causes inconsistencies when one copy is changed and another is not.

Characteristics of a computerised database

  • Structured data storage: Data is organised in tables with rows and columns, allowing systematic storage and retrieval.
  • Data independence: The database is separate from the application programs that use it, so either can be changed with limited effect on the other.
  • Support for queries: Users can request specific information through query languages such as SQL.
  • Multi-user access: Several users can access and modify data at the same time while the DBMS maintains data integrity.
  • Security controls: Access rights and authentication protect data from unauthorised use.

3.1.1.2 Database organisation

Data in a database is organised in levels, from the smallest item to the whole collection. Understanding these levels helps a developer decide, during requirements collection, which details users need to store.

  • Field: The smallest named item of data, such as Product_Name or Unit_Price.
  • Record: A complete set of related fields describing one entity, such as all the details of one product.
  • Table: A collection of records about the same kind of entity, arranged in rows (records) and columns (fields).
  • Database: A collection of related tables, for example Products, Customers, Suppliers and Orders for one shop.

The table below shows two records in a Products table.

Product_ID Product_Name Unit_Price (Ksh) Quantity_In_Stock
P001 Hammer 500 g 450 24
P002 Cement 50 kg bag 750 120

Types of databases

  • Relational databases: Store data in tables with defined relationships, suitable for most business applications.
  • NoSQL databases: Handle unstructured or rapidly changing data, suitable for big data and real-time web applications.
  • Distributed databases: Data is stored across different physical locations, improving availability and fault tolerance.
  • Cloud databases: Hosted on cloud platforms, offering scalability and remote access.
  • Centralised databases: Stored in a single location, which simplifies management but may limit access speed for remote users.

3.1.1.3 Database relationships

A relationship describes how the data in one table is connected to the data in another. Relationships are usually created by storing the key of one table as a foreign key in another. Identifying them early, from what users say about their work, prevents repeated data and design errors later.

Relationship Meaning Example
One-to-one One record in a table matches at most one record in another table. One employee has one staff login account.
One-to-many One record in a table matches many records in another table. One customer places many orders.
Many-to-many Many records in one table match many records in another table. An order contains many products, and a product appears on many orders.

A many-to-many relationship cannot be stored directly in a relational database. It is resolved by adding a linking table, such as Order_Items, which holds the keys of both tables. Drawing these relationships as diagrams is covered under designing the database schema.

3.1.1.4 Database operations

Database operations are the basic actions users perform on stored data. During requirements collection, the developer asks which operations each user group needs, since this determines forms, queries and permissions.

  • Insert: Adding new records, such as entering a new product delivered to the shop.
  • Retrieve: Searching for and displaying stored data, such as listing all products with fewer than 10 items in stock.
  • Update: Changing existing data, such as correcting a unit price from Ksh 450 to Ksh 480.
  • Delete: Removing records that are no longer needed, such as a discontinued product.
  • Sort and filter: Arranging records in order, for example by price, or showing only those that meet a condition.
  • Backup and recovery: Making copies of the database and restoring them after data loss.
  • Security administration: Creating user accounts and granting or withdrawing permissions.

Importance of databases in the workplace

  • Efficient data management: Quick access to large volumes of data, such as thousands of stock items in a retail business.
  • Improved decision making: Accurate data supports decisions, such as which products to reorder before they run out.
  • Enhanced data sharing: Different departments, such as sales and procurement, work from the same up-to-date data.
  • Data security: Sensitive information such as customer contacts is protected by passwords and permissions.
  • Automation of routine tasks: Calculations and reports are produced automatically, reducing manual errors and workload.

3.1.2 Collection of User requirements

Collection of user requirements means identifying what users expect from the database and translating these needs into technical specifications. It is vital because errors found after the database is built are costly to correct. For example, if a developer discovers only after delivery that a courier company needs to track parcels by several delivery attempts, the tables may have to be redesigned.

Techniques for gathering user requirements

  • Interviews: One-on-one discussions with users to explore their tasks, challenges and expectations.
  • Questionnaires: Structured forms given to many users to collect standardised answers.
  • Observation: Watching users perform their tasks to identify needs they may not mention and the actual workflow.
  • Workshops: Group sessions that encourage brainstorming and agreement among stakeholders.
  • Document analysis: Reviewing existing forms, registers, reports and manuals to understand current data use and gaps.

Procedure for collecting user requirements

  1. Identify the stakeholders, such as the owner, clerks, supervisors and customers who will use or depend on the database.
  2. Define the purpose and scope of the database so that everyone agrees what the system will and will not cover.
  3. Choose suitable techniques, for example interviews with managers and questionnaires for many clerks.
  4. Collect the information by holding the sessions, observing work and gathering sample forms and reports.
  5. Analyse the findings to list the data to be stored, the operations needed and the relationships between data.
  6. Document the requirements in a clear written specification, using the users' own terms where possible.
  7. Resolve conflicts and gaps by discussing them with stakeholders and agreeing priorities.
  8. Present the specification to users for review and sign-off before database design begins.

Key elements to capture during requirements collection

  • Data types and volume: What data will be stored, including formats, size and how often it changes.
  • User roles and access levels: The different user categories and the permissions each needs.
  • Reporting needs: The reports and summaries required for decision making.
  • Performance expectations: Response time, number of simultaneous users and required availability.
  • Integration requirements: Links with other systems such as accounting software or external databases.

Challenges in collecting requirements and mitigation strategies

  • Ambiguous user needs: Users may not express clearly what they want. Use prototypes or sample screens to clarify requirements.
  • Conflicting requirements: Different departments may want opposing things. Hold prioritisation workshops to reach agreement.
  • Changing requirements: Business needs evolve. Use iterative feedback and a flexible database design.
  • Limited user availability: Users may be busy. Schedule sessions in advance and use several collection methods.
  • Technical knowledge gap: Users may not understand what a database can do. Provide simple explanations or short training.
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
🔒3.2 Design Computerised database schema

Designing a database schema is the process of defining the logical structure of the database, including tables, fields, relationships, and constraints. A well-designed schema ensures data consistency, reduces redundancy, and supports efficient querying. This i…

🔒3.3 Creation of Computerised Database Objects

Creating database objects is the stage where a database design becomes a working system. Using a database management system (DBMS), a developer builds the objects that store data (tables, records, fields and keys) and the objects that work with that data (form…

🔒3.4 Data manipulation

Data manipulation is the set of operations a developer or database user performs to work with the data stored in a computerised database: inserting, retrieving, deleting, updating and printing. In a system such as an inventory database for a hardware shop or a…

Chapter Summary

This chapter provides a comprehensive overview of maintaining a computerized database, beginning with the collection of user requirements essential for effective database design. It introduces fundamental database concepts, including organisation, relationships, and operations, which form the foundation for understanding how data is structured and manipulated. The chapter then explores the design of database schemas through models such as Entity-Relationship Diagrams and relational models, enabling clear representation of data and its connections. Creation of database objects follows, detailing the roles of tables, records, fields, keys, forms, queries, and reports in building a functional database system. Data manipulation techniques are thoroughly covered, including how to insert, retrieve, delete, and update records to maintain data accuracy and relevance. Finally, the chapter addresses the printing of database objects, highlighting the methods for producing physical copies of tables, forms, queries, and reports for analysis and record-keeping. This structured approach equips learners with the knowledge to effectively design, create, and manage computerized databases.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. What is the main purpose of a computerized database in an organization? (2 marks)
  2. Identify and explain three types of relationships commonly used in database organization. (6 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 concept of a database and describe its importance in managing data at a county referral hospital. (4 marks)
  2. Differentiate between primary key and foreign key in a computerized database system. Provide examples relevant to a university student records database. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Collect User Requirements for a Computerized Database System

Software Development · Level 5
Computer Operations
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Conduct a user interview and produce a documented user requirements report for a computerized database system capturing at least five functional and three non-functional requirements.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Laptop computer with Microsoft WordInterview checklist form
PenUser requirement documentation template
Voice recorder (optional)
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Interview checklist form1 form per Candidate
2Pen1 Pen per Candidate
3Laptop computer with Microsoft Word1 Laptop per Candidate
4User requirement documentation template (digital file)1 Template per Candidate
5Voice recorder (optional)1 per 3 Candidates
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Conduct User Interview
Prepared by reviewing the interview checklist form prior to the interview
(Award 3 marks for preparation and understanding of checklist)
3
Introduced self professionally and explained the purpose of the interview
(Award 3 marks for clear and polite introduction)
3
Asked relevant questions covering both functional and non-functional aspects
(Award 1 mark per relevant question asked, max 5)
5
Took clear and organized notes during the interview
(Award 4 marks for legible, structured note-taking)
4
Clarified ambiguous answers and confirmed understanding with the user
(Award 3 marks for effective clarification and confirmation)
3
Sub-Total18
TASK 2: Document User Requirements
Used the user requirement documentation template correctly
(Award 3 marks for correct use of template)
3
Documented at least five functional requirements clearly and specifically
(Award 1 mark per clear functional requirement, max 5)
5
Documented at least three non-functional requirements clearly
(Award 1 mark per clear non-functional requirement, max 3)
3
Organized the document with headings, bullet points, and numbering
(Award 2 marks for good document organization)
2
Saved and formatted the document professionally for submission
(Award 2 marks for proper file saving and formatting)
2
Sub-Total15
PRODUCT CHECKLIST
Final user requirements document includes at least five functional and three non-functional requirements matching the interview notes
(Award 7 marks for completeness and clarity of documented requirements)
7
Document is well formatted with correct grammar, spelling, and layout
(Award 5 marks for professionalism in presentation)
5
Sub-Total12
GRAND TOTAL45
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Explain and Demonstrate Key Database Concepts

Software Development · Level 5
Computer Operations
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Explain key database concepts and demonstrate their use by creating a sample database with at least 3 tables, defining primary keys, setting relationships, and performing basic queries.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with database softwareUser manual or database concept handout
Projector or display monitorWriting materials
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with database software (e.g., Microsoft Access or MySQL Workbench)1 Pc per Candidate
2Projector or display monitor1 Pc per 5 Candidates
3User manual or database concept handout1 Pc per Candidate
4Writing materials (pen, notebook)1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Explain Key Database Concepts
Explained the concept of a database
(Award 3 marks for clear and accurate explanation)
3
Defined tables, records, and fields
(Award 3 marks for correct definitions with examples)
3
Explained primary keys and their importance
(Award 4 marks for detailed explanation and examples)
4
Described relationships (one-to-one, one-to-many, many-to-many)
(Award 5 marks for clear explanation with examples)
5
Explained basic querying concepts (select, filter, sort)
(Award 5 marks for accurate explanation and relevant examples)
5
Sub-Total20
TASK 2: Demonstrate Use of Key Database Concepts
Created a sample database with at least 3 tables
(Award 4 marks for correctly creating tables)
4
Defined primary keys for each table
(Award 4 marks for correct primary key assignment)
4
Set relationships between tables (at least one one-to-many)
(Award 5 marks for correctly defining relationships)
5
Performed and demonstrated basic queries (select, filter, sort)
(Award 5 marks for executing and explaining queries)
5
Saved and documented the database structure and queries
(Award 2 marks for proper saving and documentation)
2
Sub-Total20
PRODUCT CHECKLIST
Sample database with at least 3 tables and correct primary keys
(Award 6 marks for accuracy and completeness)
6
Correctly established relationships between tables
(Award 7 marks for proper relationship setup)
7
Executed and documented basic queries with expected results
(Award 7 marks for query correctness and documentation)
7
Sub-Total20
GRAND TOTAL60
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

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

Create a free account
🔒Design and Sketch Database Organization and RelationshipsPractical 3
🔒Perform Basic Database Operations on Customer RecordsPractical 4
🔒Develop an Entity Relationship Diagram (ERD) for a School DatabasePractical 5
🔒Create a relational database model from an ERDPractical 6
🔒Create and Populate a Computerized Database for Student RecordsPractical 7
🔒Design and create a user-friendly database form for customer data entryPractical 8
🔒Create and run database queries to retrieve specific informationPractical 9
🔒Generate Database Reports from a Computerized DatabasePractical 10
🔒Insert Multiple Records into Customer and Orders Database TablesPractical 11
🔒Retrieve Specific Records Using Queries in a Computerized DatabasePractical 12
🔒Update and Delete Records in Computerized DatabasePractical 13
🔒Print Database Objects Including Tables, Forms, Queries, and ReportsPractical 14
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

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

13 more in this section.

Create a free account
Am I competent?

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

  • collect computerized database user requirements effectively by following work instructions.
  • design computerized database schemas correctly to meet specific task needs.
  • create computerized database objects accurately according to task requirements.
  • perform data manipulation correctly to update and manage the database as needed.

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.