Software Development  ·  Level 6
Computerised Database Systems Management
Chapter 1: To design database system
📚 3 Topics
What you will be able to do

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

  • Identify different database design approaches by following workplace procedures.
  • Choose the right database design tools based on what users need.
  • Determine database structures accurately according to given specifications.
  • Develop a database design architecture that meets user requirements.
  • Perform database normalization correctly to fit application needs.
  • Create clear database model diagrams that satisfy both user and application requirements.
  • Generate a complete and professional database design report following workplace procedures.

These skills will help you build strong, efficient database systems that make managing information easier and more reliable in any workplace.

1.1 Establishing Database Requirements

Establishing database requirements is the initial and arguably most crucial phase in database system design. In Kenya’s dynamic software development landscape, gathering precise requirements from diverse sectors such as banking, healthcare, and government agencies ensures the database aligns with operational realities and compliance standards. This process involves comprehending the data to be managed, user interactions, and performance expectations, which collectively inform the database schema and architecture.

1.1.1 Introduction to DBMS

The Database Management System (DBMS) is the software that facilitates the creation, management, and use of databases. It acts as an intermediary between users and the physical data, providing tools to define, manipulate, and secure data. In Kenya, organizations ranging from microfinance institutions to county government offices rely on DBMS solutions to maintain data integrity and support decision-making.

Components of a DBMS

  • Data Definition Language (DDL): Enables defining database schema, including tables, fields, and relationships, essential for structuring data according to application needs.
  • Data Manipulation Language (DML): Provides commands to insert, update, delete, and retrieve data, allowing dynamic interaction with stored information.
  • Data Control Language (DCL): Governs user permissions and access control, ensuring data security and compliance with policies such as Kenya’s Data Protection Act.
  • Transaction Management: Ensures database consistency through mechanisms like commit and rollback, critical in multi-user environments such as banking systems.
  • Query Processor: Interprets and executes queries efficiently, optimizing response times for user requests in applications like hospital patient records.

Types of DBMS Models

  • Relational DBMS (RDBMS): Uses tables with rows and columns; widely adopted due to its flexibility and support for SQL. Examples include MySQL, Oracle, and Microsoft SQL Server, common in Kenyan financial institutions.
  • Hierarchical DBMS: Organizes data in a tree-like structure, suitable for applications with a strict parent-child data relationship, such as organizational charts in county governments.
  • Network DBMS: Allows more complex many-to-many relationships, used in telecommunications databases.
  • Object-oriented DBMS: Integrates object-oriented programming concepts, beneficial for software applications that handle complex data types, such as multimedia.

Functions of a DBMS

  • Data Storage Management: Efficiently stores data on physical media while abstracting complexities from users.
  • Data Retrieval: Provides mechanisms to quickly locate and fetch requested data.
  • Concurrency Control: Manages simultaneous data access by multiple users, preventing conflicts and ensuring consistency.
  • Backup and Recovery: Safeguards data against loss or corruption through backup routines and recovery procedures.
  • Data Integrity Enforcement: Maintains accuracy and consistency via constraints and validation rules embedded in the database.

1.1.2 Database Requirements Gathering Techniques

Gathering database requirements is a collaborative process that involves stakeholders to ensure the database system reflects real-world needs. In Kenya's software development projects, especially those serving sectors like education and healthcare, thorough requirements gathering prevents costly redesigns and enhances user satisfaction.

Stakeholder Interviews

Conducting structured interviews with end-users, managers, and IT staff uncovers detailed insights into data usage patterns, reporting needs, and pain points. For example, interviewing hospital administrators at a county referral hospital reveals specific patient data tracking requirements that inform the database schema.

Questionnaires and Surveys

Distributing questionnaires to a broad user base captures quantitative data on user expectations and frequency of database interactions. SACCOs use surveys to understand member data management needs, guiding the design of member databases.

Observation and Job Shadowing

Direct observation of daily workflows and data handling practices helps identify implicit requirements that users might not articulate. Shadowing clerks at a retail business exposes how sales data is recorded, influencing real-time inventory tracking features.

Document Analysis

Reviewing existing documentation such as business process manuals, legacy system reports, and regulatory guidelines provides context and constraints. For instance, analyzing Kenya Revenue Authority’s data policies ensures the database design complies with taxation data standards.

Prototyping

Developing a preliminary database model and obtaining feedback from users enables iterative refinement of requirements. At a university, prototyping student registration data structures helps align the system with academic administrative needs.

Practice Questions

  1. Explain the main functions of a Database Management System and their significance in a banking application. (10 marks)

  2. Compare and contrast the relational and hierarchical DBMS models with examples relevant to Kenyan organizations. (12 marks)

  3. Discuss five different techniques used for gathering database requirements and illustrate how each can be applied in a healthcare setting. (15 marks)

  4. Describe the role of transaction management in a DBMS and its importance in multi-user environments such as a SACCO. (8 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
🔒1.2 Database Models

Database models are fundamental frameworks that define how data is logically structured, stored, and manipulated within a database management system (DBMS). In Kenya’s growing software development landscape, understanding different database models enables deve…

🔒1.3 Database Design

Designing a database system is a foundational step in software development projects that require efficient data management, especially for complex applications such as financial management systems, hospital records, or academic administration in Kenyan institu…

Chapter Summary

This chapter provides a comprehensive overview of designing a database system, beginning with the establishment of database requirements through understanding the fundamental concepts of database management systems. It explains key terms, outlines the core functions of database systems, explores various applications, and distinguishes between different types of database management systems while detailing the major components and architectures involved. The process of gathering accurate database requirements is emphasized using appropriate techniques. The chapter then examines various database models including relational, hierarchical, network, object-oriented, and dimensional models, highlighting their distinct structures and uses. In the design phase, it covers conceptual design with a focus on entity-relationship diagrams, followed by the application of the relational model. Logical design is presented as the step where the conceptual model is translated into a logical structure, and physical design is discussed as the final phase that optimizes performance and storage. Together, these topics form a detailed framework for creating effective and efficient computerized database systems.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Define a Database Management System (DBMS) and explain its primary purpose. (4 marks)
  2. List and describe three major components of the DBMS environment. (6 marks)
🔒20 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with model answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Define a Database Management System (DBMS) and explain its importance in managing software development projects at a Kenyan bank such as KCB. (4 marks)
  2. List and describe four major functions of a database system. (4 marks)
🔒24 more in this section.

Chapter Practical Activities

Practical 1: Establish Database Requirements for a School Management System

Software Development · Level 6
Computerised Database Systems Management
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Gather and document detailed database requirements for a school management system including entities, attributes, and relationships with at least six entities.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Relational Database Management System (MySQL, PostgreSQL, MS SQL Server etc.)
Data Modelling Tool (Lucidchart, EdrawMax, Draw.io etc.)
Notebook and Pen for notes
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Relational Database Management System (MySQL, PostgreSQL, MS SQL Server etc.)1 Pc per Candidate
2Data Modelling Tool (Lucidchart, EdrawMax, Draw.io etc.)1 Pc per Candidate
3Notebook and Pen for notes1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Requirements Gathering
Candidate uses appropriate database requirements gathering techniques (interviews, questionnaires, observation)
(Award 1 mark for each technique correctly applied)
3
Candidate identifies and lists at least six relevant entities for the school management system
(Award 1 mark for each correctly identified entity, max 4)
4
Candidate specifies relevant attributes for each identified entity
(Award 1 mark for each entity with at least 2 appropriate attributes)
6
Candidate defines appropriate relationships between entities with cardinalities
(Award 1 mark for each correctly defined relationship with cardinality, max 4)
4
Candidate documents primary keys for each entity
(Award 1 mark for each entity with correctly specified primary key, max 3)
3
Candidate presents the gathered requirements clearly and logically using the data modelling tool
(Award 3 marks for clear, well-structured documentation and diagrams)
3
Sub-Total23
PRODUCT CHECKLIST
Complete and clear database requirements documentation including entities, attributes, primary keys, and relationships with cardinalities
(Award 7 marks for completeness, clarity, and accuracy of the documented requirements)
7
Sub-Total7
GRAND TOTAL30
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Explain DBMS Fundamentals and Key Concepts

Software Development · Level 6
Computerised Database Systems Management
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Prepare a documented explanation of DBMS fundamentals including definitions, functions, and key concepts in a report of minimum 3 pages.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Relational Database Management System (MySQL 8.0 or PostgreSQL 13)integer
Data Modelling Tool (Draw.io or Lucidchart)varchar
Rewritable Compact Disc (CD-RW)date/time
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Relational Database Management System (MySQL 8.0 or PostgreSQL 13)1 Instance per Candidate
2Data Modelling Tool (Draw.io or Lucidchart)1 License per Candidate
3Rewritable Compact Disc (CD-RW)1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Explain DBMS Fundamentals
Candidate defines DBMS and explains its purpose
(Award 1 mark for each correct aspect: definition, purpose, example)
3
Candidate correctly defines key terms: database, DBMS, schema, instance
(Award 1 mark for each term correctly defined)
4
Candidate explains at least four main functions of a DBMS
(Award 1 mark for each function clearly explained: storage, retrieval, security, backup)
4
Candidate demonstrates use of the RDBMS tool to create a sample database schema with at least two tables
(Award marks for correct creation of schema, tables, attributes, and primary keys)
5
Candidate uses Data Modelling Tool to diagrammatically represent the database schema
(Award marks for clear, correct ER diagram with entities, attributes, and relationships)
3
Sub-Total19
TASK 2: Document and Present Findings
Candidate prepares a clear, concise written report explaining DBMS fundamentals
(Award marks for clarity, completeness, and correct terminology)
5
Candidate saves the report and ER diagram on the CD-RW and demonstrates retrieval
(Award marks for correct saving, naming, and retrieval of files)
3
Candidate answers assessor's questions on DBMS concepts confidently
(Award marks for accurate, clear verbal responses)
3
Sub-Total11
PRODUCT CHECKLIST
Written report is well structured, minimum 3 pages, with correct DBMS fundamentals and terminology
(Award marks for content accuracy, structure, and language)
5
Database schema created in RDBMS with at least two tables and primary keys correctly defined
(Award marks for correct schema creation and attribute specification)
5
ER diagram correctly drawn showing entities, attributes, and relationships
(Award marks for completeness and clarity)
5
Report and ER diagram saved and retrieved successfully from CD-RW
(Award marks for file management and demonstration)
4
Sub-Total19
GRAND TOTAL49
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

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

Create a free account
🔒Identify and Classify Real-World Database ApplicationsPractical 3
🔒Classification and Explanation of Database Management System TypesPractical 4
🔒Describe and explain the major components of a DBMS environmentPractical 5
🔒Illustrate and explain the three levels of database architecturePractical 6
🔒Comparison of Database Models with Sample ImplementationsPractical 7
🔒Design a Conceptual Database Schema Using ERD for a School Management SystemPractical 8
🔒Physical database design implementation for a school management systemPractical 9
🔒Design a Hierarchical Database Model Diagram for a Library Management SystemPractical 10
🔒Model a network database diagram for a library management systemPractical 11
🔒Design an Object-Oriented Database Model for a Library SystemPractical 12
🔒Design a dimensional database model for sales data warehousePractical 13
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:

  • Identify different database design approaches by following workplace procedures.
  • Choose the right database design tools based on what users need.
  • Determine database structures accurately according to given specifications.
  • Develop a database design architecture that meets user requirements.
  • Perform database normalization correctly to fit application needs.
  • Create clear database model diagrams that satisfy both user and application requirements.
  • Generate a complete and professional database design report following workplace procedures.

Tick each one you can genuinely do.

Prove it — in the simulator

Sample simulation — try how the simulator works. A version built for this chapter's practical is coming.

Prepare Kenyan PilauLocked ▸

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

Now — 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.