By the end of this chapter, you will be able to:
These skills will help you build reliable database systems while keeping your workplace safe and environmentally responsible—key qualities for success in the tech trade!
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Relational Database Management System (MySQL, PostgreSQL, MS SQL Server) | Rewritable Compact Disc (CD-RW) |
| Data Modelling Tool (Lucidchart, EdrawMax, Draw.io) |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Relational Database Management System (MySQL, PostgreSQL, MS SQL Server) | 1 Pc per Candidate |
| 2 | Data Modelling Tool (Lucidchart, EdrawMax, Draw.io) | 1 Pc per Candidate |
| 3 | Rewritable Compact Disc (CD-RW) | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Create database and tables | |||
| Created database named 'StudentRegistration' (Award 1 mark for correct database creation) | 1 | ||
| Created table 'Students' with fields and appropriate data types (Award 1 mark for each correct field and data type: StudentID integer PK, FirstName varchar, LastName varchar, DateOfBirth date, Email varchar) | 4 | ||
| Created table 'Courses' with fields and appropriate data types (Award 1 mark for each correct field and data type: CourseID integer PK, CourseName varchar, DurationMonths integer) | 3 | ||
| Created table 'Enrollments' with fields and appropriate data types (Award 1 mark for each correct field and data type: EnrollmentID integer PK, StudentID integer FK, CourseID integer FK, EnrollmentDate date) | 4 | ||
| Set primary keys on StudentID, CourseID, EnrollmentID fields respectively (Award 1 mark for each primary key defined) | 3 | ||
| Set foreign key constraints on Enrollments.StudentID and Enrollments.CourseID referencing Students and Courses respectively (Award 1.5 marks for each foreign key constraint) | 3 | ||
| Used consistent naming conventions for tables and fields (Award 2 marks for consistent and meaningful naming) | 2 | ||
| Sub-Total | 20 | ||
| PRODUCT CHECKLIST | |||
| Students table with fields: StudentID (integer, PK), FirstName (varchar), LastName (varchar), DateOfBirth (date), Email (varchar) (Award 3 marks for correct fields, data types, and primary key) | 3 | ||
| Courses table with fields: CourseID (integer, PK), CourseName (varchar), DurationMonths (integer) (Award 2 marks for correct fields, data types, and primary key) | 2 | ||
| Enrollments table with fields: EnrollmentID (integer, PK), StudentID (integer, FK), CourseID (integer, FK), EnrollmentDate (date) (Award 3 marks for correct fields, data types, primary key, and foreign keys) | 3 | ||
| Referential integrity enforced via foreign keys between Enrollments and Students, and Enrollments and Courses (Award 2 marks for correct foreign key constraints) | 2 | ||
| Database structure follows normalization and best design practices (Award 2 marks for normalization and consistent naming) | 2 | ||
| Sub-Total | 12 | ||
| GRAND TOTAL | 32 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Relational Database Management System (MySQL, PostgreSQL, MS SQL Server etc.) | integer |
| Data Modelling Tool (Lucidchart, EdrawMax, Draw.io etc.) | varchar |
| Rewritable Compact Disc (CD-RW) | date/time |
| 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 | Rewritable Compact Disc (CD-RW) | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Define Database Keys | |||
| Mapped entities from the ERD into six (6) relations (Award 1 mark per correctly mapped relation, zero if incorrect) | 3 | ||
| Specified attributes for the six (6) relations (Award 1 mark per table for correct attributes with data types) | 6 | ||
| Specified primary keys for the six (6) relations (Award 0.5 mark per correct primary key per table) | 3 | ||
| Specified composite primary keys for the marks and subject-teacher relations (Award 1 mark per correct composite primary key) | 2 | ||
| Enforced referential integrity by specifying foreign keys in the referencing relations (Award 1 mark per correctly defined foreign key with constraints) | 4 | ||
| Printed the relational schema (Award 1 mark for clear, complete printed schema) | 1 | ||
| Sub-Total | 19 | ||
| PRODUCT CHECKLIST | |||
| Created database and six (6) tables with required attributes and data types (Award 2 marks per table created with correct attributes and data types) | 12 | ||
| Enforced entity integrity (primary key) constraints in the six (6) tables (Award 1 mark per table for correct primary key enforcement) | 6 | ||
| Enforced referential integrity (foreign key) constraints in the six (6) tables (Award 1 mark per table for correct foreign key enforcement) | 6 | ||
| Utilized best practices in Database Design: (a) Well normalized relations (b) Consistent naming scheme for relations and attributes (Award 2 marks for normalization, 2 marks for consistent naming) | 4 | ||
| Sub-Total | 28 | ||
| GRAND TOTAL | 47 | ||
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.