By the end of this chapter, you will be able to:
These skills will help you build strong, efficient database systems that make managing information easier and more reliable in any workplace.
Compiled by: John Okoth
A database design approach is the strategy a designer follows to move from a business problem to a finished database design: where to start, in what order to work and who does the work. Choosing the approach before anything is drawn matters because it decides how requirements are gathered, how the tables are discovered and how much rework is needed later. Example: a courier company that wants to track parcels may begin from the questions its managers ask, such as "where is this parcel now?", or from the paper waybill its clerks already fill in. Those two starting points lead to two different approaches.
Four approaches are identified in this topic. Two describe the direction of the work (top-down and bottom-up) and two describe how the work is organised across people and sites (centralised and decentralised). A real project often combines one from each pair, for example a centralised team that works top-down.
A design approach answers three practical questions: what is the starting point, who does the design and how the pieces are put together. The tools, models, normalisation rules and diagrams met in the rest of this chapter are the same whichever approach is chosen; only the order in which they are used changes.
| Approach | Starting point | Direction of work | Who designs |
|---|---|---|---|
| Top-down | Business processes and the whole organisation | General to detailed: entities first, attributes later | Analysts with managers and users |
| Bottom-up | Existing forms, reports and data items | Detailed to general: attributes first, tables later | Developers working from documents |
| Centralised | One set of requirements for the whole organisation | One design produced in one place | One designer or one team |
| Decentralised | Separate requirements for each department or branch | Local designs produced separately, then merged | Several teams |
The top-down method starts with a broad view of the organisation and refines it step by step. The designer first identifies the main things the business keeps information about (entities), then the relationships between them, and only afterwards fills in the attributes, keys and finally the tables. It follows the path from conceptual design, to logical design, to physical design.
Example: for a car hire company the designer starts from the business sentence "customers book cars for a period". That gives the entities Customer, Car and Booking and the relationships between them, long before anyone decides on column names or data types.
Steps in the top-down method:
Strengths and limits of the method:
The bottom-up method starts with the smallest pieces of data, the attributes, and builds upwards. The designer collects every data item from existing forms, reports, spreadsheets and files, finds out which items depend on which, and groups items that belong together into tables. The grouping is done with the normalisation rules, and the tables are then linked with keys.
Example: a hardware shop keeps its stock in a spreadsheet with columns such as item code, item name, supplier name, supplier phone, buying price and quantity. A bottom-up designer studies these columns and notices that supplier name and supplier phone depend on the supplier, not on the item, so a separate Supplier table is formed.
Steps in the bottom-up method:
Strengths and limits of the method:
In centralised design one designer or one design team collects the requirements of the whole organisation and produces a single database design. All decisions about names, data types, keys and rules are taken in one place, so the result is consistent from the start.
Example: a small tailoring business with one shop and four staff asks one developer to design its database. The developer interviews the owner, the cutters and the person who handles payments, and produces one design covering customers, orders, measurements and payments.
Features of centralised design:
In decentralised design each department, branch or project team designs the part of the database it understands best. The local designs are then compared and merged into one global design. This merging is called view integration.
Example: a courier company has a branch office team that designs tables for parcel intake, a depot team that designs tables for sorting and loading, and a delivery team that designs tables for riders and routes. All three designs contain a Parcel entity, and the integration step decides what the single Parcel table will contain.
Steps in decentralised design:
Advantages and limits:
The approaches are chosen to fit the project, not the other way round. A small organisation with one site and a short timetable can work centralised, and either top-down or bottom-up depending on whether documents already exist. A large organisation with several branches may work decentralised, and needs a top-down overall plan so that the local designs can be merged. Many designers also mix directions: they model the core entities top-down, then check the model bottom-up by confirming that every existing form and report can be produced from it.
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountType: Individual
| Tools & Equipment | Materials |
|---|---|
| Relational Database Management System (MySQL, PostgreSQL, MS SQL Server etc.) | |
| Data Modelling Tool (Lucidchart, EdrawMax, Draw.io etc.) | |
| Notebook and Pen for notes |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Relational Database Management System (MySQL, PostgreSQL, MS SQL Server etc.) | 1 Pc per Candidate |
| 2 | Data Modelling Tool (Lucidchart, EdrawMax, Draw.io etc.) | 1 Pc per Candidate |
| 3 | Notebook and Pen for notes | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| 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-Total | 23 | ||
| 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-Total | 7 | ||
| GRAND TOTAL | 30 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| 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 |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Relational Database Management System (MySQL 8.0 or PostgreSQL 13) | 1 Instance per Candidate |
| 2 | Data Modelling Tool (Draw.io or Lucidchart) | 1 License per Candidate |
| 3 | Rewritable Compact Disc (CD-RW) | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| 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-Total | 19 | ||
| 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-Total | 11 | ||
| 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-Total | 19 | ||
| GRAND TOTAL | 49 | ||
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.