Back to Syllabus Hub
Unit 850 Periods Allocated

Database Management

Focuses on relational databases, ER diagram models, SQL queries (DDL & DML), and 1NF/2NF/3NF normalisation.

Syllabus Competency Mappings

Level 8.3Competency Level

Analyzes the main components of a database system.

Key Topics:
  • SQL Data Definition Language (CREATE, ALTER, DROP)
  • SQL Data Manipulation Language (INSERT, SELECT, UPDATE, DELETE, JOIN)
Level 8.7Competency Level

Normalizes database schema to improve performance.

Key Topics:
  • Need for normalization (anomalies: insert, update, delete)
  • Levels: 1NF, 2NF, 3NF
  • Functional dependencies (partial, transitive)

A/L ICT Competency Study Guide

1. Database Normalization

Normalization is the systematic process of organizing database tables to minimize data redundancy and eliminate update, insert, and delete anomalies.

  1. First Normal Form (1NF): A relation is in 1NF if it contains no repeating groups or multi-valued attributes. Every attribute must contain atomic (indivisible) values, and a primary key must be defined.
  2. Second Normal Form (2NF): Must be in 1NF. All non-prime attributes must be fully functionally dependent on the entire primary key. In other words, there must be no partial dependencies (where a non-key column depends on only part of a composite primary key).
  3. Third Normal Form (3NF): Must be in 2NF. There must be no transitive dependencies (where a non-key column depends on another non-key column). Every non-prime attribute must depend only on the primary key (the key, the whole key, and nothing but the key).

2. Structured Query Language (SQL)

SQL is divided into two primary sub-languages:

  • DDL (Data Definition Language): Alters schema structures.
    CREATE TABLE Student (
        StudentID INT PRIMARY KEY,
        Name VARCHAR(100) NOT NULL,
        Email VARCHAR(50) UNIQUE,
        DOB DATE
    );
  • DML (Data Manipulation Language): Retrieves and modifies table tuples.
    SELECT Student.Name, Exam.Score
    FROM Student
    INNER JOIN Exam ON Student.StudentID = Exam.StudentID
    WHERE Exam.Subject = 'ICT' AND Exam.Score >= 75;

Keep going

Learn this unit in class

Teran Subasinghe (UK QTS) teaches all 14 units from the basics, with unit tests along the way. Physical classes in Nugegoda and Bambalapitiya, or live online from anywhere in Sri Lanka.

Ask GuruBotQuestions about classes