Monday, June 8, 2026

Database Normalization for Beginners GCE A/L ICT Unit 8 Exam Notes and Question ICT Classes English Tamil Medium

๐Ÿ“– Database Normalization for Beginners

Database normalization is a process used to organize data in a database properly.

Goals of normalization:

  • Reduce data redundancy (duplicate data)
  • Avoid anomalies (problems when inserting/updating/deleting)
  • Improve consistency
  • Make database easier to manage

ICT Online Class 0729622034

๐Ÿ”‘ Important Terms

1. Redundancy

Redundancy means duplicate or repeated data.

Example

StudentIDStudentNameCourseLecturer
1AliDBMSSilva
1AliWebPerera

Here, student name Ali is repeated many times. This wastes space and can create errors.


2. Anomaly

Anomaly means problems caused by bad database design.

a) Insert Anomaly

Cannot insert data properly.

  • Cannot add a new course unless a student joins it.

b) Update Anomaly

Need to update same data in many places.

  • Lecturer Silva changes to Fernando.
  • Must update every row.
  • If one row is missed → inconsistent data.

c) Delete Anomaly

Deleting one row removes important information.

  • If last student leaves a course, course information is lost too.

ICT Online Class 0729622034

๐ŸŸข What is 1NF (First Normal Form)?

A table is in 1NF if:

  1. Each column has atomic values
  2. No repeating groups
  3. Each row is unique

Atomic Value

Atomic means:

  • One cell should contain only ONE value
  • Cannot store multiple values in one field

Wrong Example

StudentIDNamePhoneNumbers
1Ali0777,0711

PhoneNumbers contains multiple values. This is NOT atomic.

Correct Example

StudentIDNamePhoneNumber
1Ali0777
1Ali0711

Now each cell has only one value. This is atomic.


Repeating Group

Repeating group means multiple similar columns storing same type of data.

Wrong Example

StudentIDSubject1Subject2Subject3
1DBMSWebAI

This repeats subject columns. NOT 1NF.

Correct Example

StudentIDSubject
1DBMS
1Web
1AI

Now no repeating groups.


Things That Should NOT Exist in 1NF

❌ Multiple values in one cell
❌ Repeating columns
❌ Array/list inside a field
❌ Duplicate rows
❌ Non-atomic values


Steps to Convert to 1NF

  1. Find repeating groups (e.g., Phone1, Phone2, Phone3)
  2. Remove multiple values from one cell
  3. Create separate rows for repeated data
  4. Ensure each row is unique using primary key

Example of Converting to 1NF

Before 1NF

OrderIDCustomerProducts
101AhmedPen,Book

Problems: Multiple values in Products, Not atomic

After 1NF

OrderIDCustomerProduct
101AhmedPen
101AhmedBook

Now: ✔ Atomic ✔ No repeating groups ✔ 1NF achieved

ICT Online Class 0729622034

๐ŸŸก 2NF (Second Normal Form)

A table is in 2NF if:

  1. Already in 1NF
  2. No partial dependency

Partial Dependency

Occurs when:

  • Table has composite primary key
  • Non-key attribute depends on only PART of key

Example

StudentIDCourseIDStudentNameCourseName
1C1AliDBMS

Primary Key = (StudentID, CourseID)

Problems:

  • StudentName depends only on StudentID
  • CourseName depends only on CourseID

This is partial dependency. NOT 2NF.


How to Remove Partial Dependency

Split table.

Student Table

StudentIDStudentName
1Ali

Course Table

CourseIDCourseName
C1DBMS

Enrollment Table

StudentIDCourseID
1C1

Now: ✔ No partial dependency ✔ 2NF achieved


Rules of 2NF

✔ Must be in 1NF
✔ No partial dependency
✔ Non-key columns depend on full primary key

Steps to Convert to 2NF

  1. Ensure table is in 1NF
  2. Find composite key
  3. Check if any column depends on only part of key
  4. Separate into smaller tables

ICT Online Class 0729622034

๐ŸŸ  3NF (Third Normal Form)

A table is in 3NF if:

  1. Already in 2NF
  2. No transitive dependency

Transitive Dependency

Occurs when a non-key column depends on another non-key column.

Example

StudentIDStudentNameDeptIDDeptName
1AliD1Computing

Problem: DeptName depends on DeptID, DeptID depends on StudentID
So: StudentID → DeptID → DeptName (Transitive Dependency)

This is NOT 3NF.


How to Remove Transitive Dependency

Split table.

Student Table

StudentIDStudentNameDeptID
1AliD1

Department Table

DeptIDDeptName
D1Computing

Now: ✔ No transitive dependency ✔ 3NF achieved


Rules of 3NF

✔ Must be in 2NF
✔ No transitive dependency
✔ Non-key attributes depend only on primary key

Steps to Convert to 3NF

  1. Ensure table is in 2NF
  2. Find non-key to non-key dependency
  3. Create separate tables

ICT Online Class 0729622034

๐Ÿ”ต 4NF (Fourth Normal Form)

A table is in 4NF if:

  1. Already in 3NF
  2. No multi-valued dependency

Multi-Valued Dependency

Occurs when one entity has multiple independent values.

Example

StudentHobbyLanguage
AliCricketEnglish
AliCricketTamil
AliFootballEnglish
AliFootballTamil

Problem: Hobbies and languages are independent. Data repeats unnecessarily. NOT 4NF.


How to Remove Multi-Valued Dependency

Split into separate tables.

StudentHobby Table

StudentHobby
AliCricket
AliFootball

StudentLanguage Table

StudentLanguage
AliEnglish
AliTamil

Now: ✔ No unnecessary repetition ✔ 4NF achieved

ICT Online Class 0729622034

๐Ÿ“Š Quick Summary & Memory Tricks
Normal FormRemoves
1NFRepeating groups & non-atomic values
2NFPartial dependency
3NFTransitive dependency
4NFMulti-valued dependency

Easy Way to Identify

  • 1NF Check: Any multiple values in one cell? Any repeating columns? If YES → not 1NF
  • 2NF Check: Composite key exists? Any column depends on part of key only? If YES → not 2NF
  • 3NF Check: Any non-key column depends on another non-key column? If YES → not 3NF
  • 4NF Check: Any independent multiple values causing repetition? If YES → not 4NF

๐Ÿง  Final Simple Memory Trick

• 1NF → One value per cell
• 2NF → Full key dependency
• 3NF → Only key dependency
• 4NF → No multiple independent lists

ICT Online Class 0729622034

๐Ÿ“˜ UNIT 8 – Databases (GCE A/L ICT) Exam Notes

๐Ÿง  SECTION A: THEORY RECAP (Quick Revision)

Normalization Key Points
  • 1NF → Atomic values, no repeating groups
  • 2NF → No partial dependency
  • 3NF → No transitive dependency
  • 4NF → No multi-valued dependency
ER Diagram Key Points
  • Entity → real-world object (Student, Course)
  • Attribute → property (Name, ID)
  • Relationship → connection (Enrolls)
  • Primary Key → unique identifier
  • Cardinality → 1:1, 1:M, M:M

ICT Online Class 0729622034

๐Ÿงพ Past Paper & Unit Test Questions

๐Ÿ”ต QUESTION 1 – 1NF

OrderIDCustomerNameProducts
O01KamalPen, Book
O02NimalPencil, Eraser

Questions: 1. State TWO problems. 2. Convert to 1NF. 3. Define atomic value.

✔ Examiner Focus: Detect repeating group, Split into rows

๐Ÿ”ต QUESTION 2 – 2NF

StudentIDCourseIDStudentNameCourseNameLecturer

PK = (StudentID, CourseID)

Questions: 1. Identify dependency type. 2. Explain why NOT 2NF. 3. Convert into 2NF tables.

✔ Expected: Partial dependency exists (StudentName→StudentID, CourseName→CourseID)

๐Ÿ”ต QUESTION 3 – 3NF

EmpID | EmpName | DeptID | DeptName | DeptLocation

Questions: 1. Identify transitive dependency. 2. Why not 3NF? 3. Normalize to 3NF.

✔ Examiner Focus: DeptName depends on DeptID (not EmpID)

๐Ÿ”ต QUESTION 4 – 4NF

StudentSkillLanguage
S1CricketEnglish
S1FootballTamil

Questions: 1. Explain redundancy. 2. Convert to 4NF. 3. Define multi-valued dependency.


๐Ÿ”ต QUESTION 5 – ER Diagram Design

System stores: Student (ID, Name, Address), Teacher (ID, Name, Subject). Each student enrolls in multiple subjects. Each subject taught by one teacher.

Tasks: 1. Identify entities/attributes. 2. Draw ER diagram. 3. State cardinality Student–Subject. 4. Identify PKs.

✔ Examiner expects: M:N (Student–Subject), 1:M (Teacher–Subject)

๐Ÿ”ต QUESTION 6 – ER to Table Conversion

Given: Student, Course, Relationship: Enrolls (M:N)

Tasks: 1. Convert to relational tables. 2. Identify PKs & FKs. 3. Explain why junction table is needed.


๐Ÿ”ต QUESTION 7 – Relationship Types

  • One student has one ID card → 1:1
  • One teacher teaches many students → 1:M
  • Many students enroll in many courses → M:N

๐Ÿ”น SECTION D: Unit Test Short Questions

  1. Define redundancy. 2. What is an anomaly? 3. State TWO anomaly types. 4. What is atomic value? 5. What is a repeating group?
  2. State TWO rules of 1NF. 6. What is partial dependency? 7. What is transitive dependency? 8. Why is 2NF important? 9. Goal of normalization?
  3. Define entity/attribute/relationship. 10. What is cardinality? 11. Draw PK symbol. 12. Diff between 1:M & M:N. 13. What is composite key?

ICT Online Class 0729622034

๐Ÿ’ก Exam Tips & Quick Revision

๐Ÿง  EXAM TIPS (VERY IMPORTANT)

  • Always show steps (not only final answer)
  • Use arrows in dependency explanation
  • Clearly mark primary key (PK) and foreign key (FK)
  • ER diagrams: Rectangle = Entity, Oval = Attribute, Diamond = Relationship

๐Ÿ“Œ QUICK REVISION SUMMARY

TopicExam Focus
1NFAtomic values, remove repeating groups
2NFRemove partial dependency
3NFRemove transitive dependency
4NFRemove multi-valued dependency
ERDEntities, relationships, cardinality

ICT Online Class 0729622034

๐Ÿ“š Unit 8 DBMS Syllabus Coverage

Database Fundamentals

  • Data vs Information
  • Database, DBMS, RDBMS

Relational Database Concepts

  • Table (Relation), Record (Tuple), Field (Attribute)
  • Domain, Primary Key, Foreign Key, Candidate Key, Composite Key

Database Design

  • Entity, Attribute, Relationship, ER Diagram (ERD)

Normalization

  • UNF, 1NF, 2NF, 3NF

SQL Commands

  • CREATE, ALTER, DROP
  • INSERT, UPDATE, DELETE
  • SELECT, WHERE, ORDER BY, GROUP BY

Database Security

  • Access Rights, Data Integrity, Backup, Recovery

ICT Online Class 0729622034

๐Ÿ“ Question Types & Most Repeated Topics

A. MCQ Questions

Usually 5–12 MCQs directly or indirectly related to DBMS appear in Paper I.

  • Database Basics: Primary key, foreign key, DBMS model, data redundancy.
  • SQL MCQ: Purpose of SELECT * FROM Student;
  • ERD MCQ: Identify cardinality, One-to-many relationship.
  • Normalization MCQ: Which table is in 1NF? Identify partial dependency.

B. Structured Questions

  • Convert ER Diagram to Relations: e.g., Student, Course, Registration → Relational schema.
  • SQL Writing: CREATE TABLE, INSERT INTO, UPDATE, DELETE.
  • Normalization: Given a table, convert to 1NF, 2NF, 3NF.

C. Essay Questions

  • Advantages of DBMS over file systems.
  • Explain normalization with examples.
  • Explain ERD and relational mapping.
  • Explain SQL commands with examples.
  • Database security and integrity.

Most Repeated Topics (2011–2024 Analysis)

TopicFrequency
Primary KeyVery High
Foreign KeyVery High
ER DiagramVery High
ERD → Relation MappingVery High
NormalizationVery High
SQL SELECTVery High
SQL INSERT / UPDATEHigh
DDL vs DMLHigh
Database Security / IntegrityMedium

ICT Online Class 0729622034

✍️ Fill in the Blanks, Matching & True/False

Fill in the Blanks

  • A Primary Key uniquely identifies a record.
  • SQL stands for Structured Query Language.
  • A table row is called a Tuple.
  • A table column is called an Attribute.
  • Repetition of data is called Data Redundancy.

Matching Questions

Column AColumn B
Primary KeyUnique Identifier
Foreign KeyReference Field
SQLQuery Language
ERDDatabase Design
1NFAtomic Values

True / False Questions

  • Every table must have a primary key. True ✔
  • Foreign key ensures relationship between tables. True ✔
  • SQL is a programming language. False ✘
  • 3NF reduces redundancy. True ✔
  • ERD is used before implementation. True ✔

ICT Online Class 0729622034

๐Ÿ’ป Practical SQL Questions

Common Exam Tasks

Create Table

CREATE TABLE Student (
  StudentID INT,
  Name VARCHAR(30)
);

Insert Record

INSERT INTO Student VALUES(1,'Ali');

Select Records

SELECT * FROM Student;

Update Record

UPDATE Student SET Name='Ahmed' WHERE StudentID=1;

Delete Record

DELETE FROM Student WHERE StudentID=1;

ICT Online Class 0729622034

๐ŸŸข PART A – MCQ Questions & Answers
  1. Which key uniquely identifies a record in a table?
    Answer: C. Primary Key
    Explanation: A primary key uniquely identifies every record in a table.
  2. A row in a relational table is called a:
    Answer: D. Tuple
    Explanation: A row is called a tuple, while a column is called an attribute.
  3. Which SQL command retrieves data?
    Answer: C. SELECT
    Explanation: SELECT is used to retrieve records from a table.
  4. Which normal form removes repeating groups?
    Answer: A. 1NF
    Explanation: First Normal Form requires atomic values and no repeating groups.
  5. A foreign key is used to:
    Answer: C. Link tables
    Explanation: Foreign keys establish relationships between tables.
  6. Which SQL command adds new records?
    Answer: B. INSERT INTO
    Explanation: INSERT INTO adds records to a table.
  7. Data duplication is called:
    Answer: B. Redundancy
    Explanation: Redundancy means storing the same data multiple times.
  8. Which key can contain multiple attributes?
    Answer: A. Composite Key
    Explanation: Composite keys consist of more than one attribute.
  9. Which SQL clause filters records?
    Answer: C. WHERE
    Explanation: WHERE specifies conditions.
  10. Which command changes existing data?
    Answer: A. UPDATE
    Explanation: UPDATE modifies existing records.

ICT Online Class 0729622034

๐ŸŸก PART B, C & D – Blanks, True/False & Short Qs

PART B – Fill in the Blanks

  1. A Primary Key uniquely identifies a record.
  2. A column in a table is called an Attribute.
  3. SQL stands for Structured Query Language.
  4. A row in a table is called a Tuple.
  5. The process of reducing redundancy is called Normalization.
  6. The set of allowed values for an attribute is called a Domain.
  7. A database containing tables is known as a Relational database.
  8. The Foreign key references a primary key in another table.
  9. Referential integrity ensures foreign key validity.
  10. CREATE TABLE is used to create a table.

PART C – True / False

  1. Every table should have a primary key. True
  2. A foreign key must always be unique. False (Multiple records can share the same foreign key.)
  3. Normalization reduces redundancy. True
  4. SELECT is a DDL command. False (Belongs to DML.)
  5. ERD is used during database design. True
  6. 2NF comes before 1NF. False
  7. UPDATE modifies existing records. True
  8. DELETE removes records. True
  9. Primary keys may contain NULL values. False
  10. SQL is used to communicate with databases. True

PART D – Short Questions

  1. What is a DBMS?
    Software used to create, manage and retrieve data from databases (e.g., MySQL, Oracle).
  2. What is a Primary Key?
    An attribute that uniquely identifies each record (e.g., StudentID).
  3. What is a Foreign Key?
    An attribute referencing the primary key of another table.
  4. What is an ER Diagram?
    A graphical representation of entities and relationships.
  5. What is Normalization?
    The process of organizing data to reduce redundancy.

ICT Online Class 0729622034

๐Ÿ”ต PART E – Normalization Questions & Answers

Question 1: Convert to 1NF

StudentIDStudentNameSubject1Subject2
S001AmalICTMaths

Answer

StudentIDStudentNameSubject
S001AmalICT
S001AmalMaths

Explanation: Repeating groups removed.


Question 2: Convert to 2NF

Given: | OrderID | ProductID | ProductName | Qty | (PK: OrderID, ProductID)

Answer

Order Table: | OrderID | ProductID | Qty |

Product Table: | ProductID | ProductName |

Explanation: ProductName depends only on ProductID (Partial dependency removed).


Question 3: Convert to 3NF

Given: | StudentID | StudentName | ClassID | ClassName |

Answer

Student Table: | StudentID | StudentName | ClassID |

Class Table: | ClassID | ClassName |

Explanation: Removed transitive dependency (ClassName depends on ClassID, not StudentID).

ICT Online Class 0729622034

๐ŸŸ  PART F & G – SQL & Essay Questions

PART F – SQL Questions

  1. Create Student table:
    CREATE TABLE Student(StudentID INT PRIMARY KEY, Name VARCHAR(50), City VARCHAR(30));
  2. Insert student:
    INSERT INTO Student VALUES(1,'Amal','Colombo');
  3. Display all students:
    SELECT * FROM Student;
  4. Display only Colombo students:
    SELECT * FROM Student WHERE City='Colombo';
  5. Update city:
    UPDATE Student SET City='Kandy' WHERE StudentID=1;
  6. Delete student:
    DELETE FROM Student WHERE StudentID=1;

PART G – Essay Questions

Essay 1: Advantages of DBMS over file systems

  • Reduced redundancy, Better security, Data sharing, Data integrity, Faster retrieval, Backup/recovery, Multiple user access.

Essay 2: Explain normalization

  • 1NF (Atomic values, no repeating groups), 2NF (Remove partial dependency), 3NF (Remove transitive dependency). Benefits: Reduced redundancy, improved consistency, easier maintenance.

Essay 3: Primary Key vs Foreign Key

  • PK: Unique, Not NULL. FK: References another table, maintains relationships.

Essay 4: DDL and DML

  • DDL: CREATE, ALTER, DROP. DML: SELECT, INSERT, UPDATE, DELETE.

Essay 5: Database Security

  • User authentication, Password protection, Access control, Backup, Recovery, Encryption, Audit logs.

ICT Online Class 0729622034

๐Ÿ”ท ER DIAGRAM (ERD) Concepts (Q1-Q8)
  1. What is an Entity?
    A real-world object, person, place, event, or thing about which data is stored (e.g., Student, Teacher). Entities become tables.
  2. What is an Attribute?
    A property or characteristic of an entity (e.g., StudentID, Name). Attributes become columns.
  3. What is a Relationship?
    Describes how two entities are associated (e.g., Student → Enrolls → Course).
  4. Draw ERD for Students and Courses (M:N)
    Student M -------- M Course (Many-to-Many relationship).
  5. Identify Relationship: One teacher teaches many students.
    Teacher 1 -------- M Student (One-to-Many).
  6. Identify Relationship: One customer can place many orders.
    Customer 1 -------- M Order.
  7. Identify Relationship: One employee manages one department.
    Employee 1 -------- 1 Department (One-to-One).
  8. What is Cardinality?
    Specifies the number of entity instances participating in a relationship. Types: 1:1, 1:M, M:N.

ICT Online Class 0729622034

๐Ÿ“ ER DIAGRAM (ERD) Drawing & Conversion (Q9-Q15)

Question 9: School ERD

One class has many students. Answer: Class 1 ------- M Student


Question 10: Library ERD

Members can borrow many books. Books can be borrowed by many members.
Answer: Member M ------- M Book. Needs an associative entity: Borrow(BorrowID, Date) between Member(1) and Book(M).


Question 11: Company ERD

One department employs many employees.
Answer: Department 1 -------- M Employee


Question 12: Hospital ERD

One doctor treats many patients.
Answer: Doctor 1 -------- M Patient


Question 13: Convert ERD to Relations (1:M)

Student 1 ------ M Exam
Answer:
Student(StudentID PK, Name)
Exam(ExamID PK, Subject, StudentID FK)
Foreign key goes to the "many" side.


Question 14: Convert ERD to Relations (M:N)

Customer M ------ M Product
Answer:
Customer(CustomerID PK, Name)
Product(ProductID PK, ProductName)
Order(CustomerID FK, ProductID FK)
Many-to-Many requires a junction table.


Question 15: Steps in designing an ER Diagram

  1. Identify entities.
  2. Identify attributes.
  3. Select primary keys.
  4. Identify relationships.
  5. Determine cardinality.
  6. Draw entities and attributes.
  7. Connect relationships.
  8. Validate design.

ICT Online Class 0729622034

๐Ÿ† Frequently Asked ERD Scenarios & Golden Rules

Frequently Asked A/L ERD Scenarios

ScenarioRelationship
Student – CourseM:N
Customer – Order1:M
Department – Employee1:M
Teacher – Class1:M
Doctor – Patient1:M
Library Member – BookM:N
Supplier – ProductM:N
Hotel – Room1:M
Passenger – Ticket1:M
Employee – ProjectM:N

๐ŸŒŸ Golden Rule for Exams

1:1 Relationship
→ Foreign key in either table.

1:M Relationship
→ Foreign key on the MANY side.

M:N Relationship
→ Create a new associative (junction) table containing both foreign keys.

Mastering these three cases will help solve almost every ERD question in GCE A/L ICT Unit 8.

ICT Online Class 0729622034

๐ŸŽ“ Expert ICT, Coding, School Classes, Digital Marketing & University Project Guidance

Struggling with your university final year project? Want to master coding, upscale your business with expert digital marketing, or learn absolute computer basics from scratch? We offer high-quality individual and group online classes conducted in English, Sinhala, or Tamil mediums. Get guaranteed academic success and professional growth with tailored guidance.


๐ŸŽ“ University Final Year Project Guidance & AI

Get specialized, end-to-end mentoring and technical support to pass your degree or master's program with flying colors:

  • ๐Ÿซ Targeted Institutes: Expert guidance tailored for BIT UCSC, UoM, SLIIT, NIBM, and other leading universities.
  • ๐Ÿ”ฌ Postgraduate Support: Comprehensive assistance for MSc Software Final Year Projects.
  • ๐Ÿค– AI & Smart Applications: Step-by-step implementation of AI, Machine Learning (ML), and automation modules.
  • Guaranteed Success: Help with documentation, system architecture, coding, and viva preparation.

๐Ÿซ School ICT & Corporate Beginner Classes

  • ๐Ÿ’ป Non-IT Staff Computer Basics: Absolute beginner-friendly online classes covering essential computer skills, office tools, and internet operations.
  • ๐ŸŽ’ Primary & Secondary (Grades 1-10): Interactive online ICT classes tailored to build strong foundations from early ages.
  • ๐Ÿ“ Exam Prep: Dedicated training packages for GCE O/L, GCE A/L ICT, and GIT exams.
  • ๐ŸŒ Global Syllabuses: Complete curriculum coverage for Local, Edexcel, and Cambridge in English & Tamil Mediums.

๐Ÿ“ข Software Development & Digital Marketing Services

  • ⚙️ Software & Web Development: Professional custom software application and website development built using PHP & MySQL.
  • ๐ŸŽฏ Social Media Management: Content creation, publishing, and channel management for Facebook, Instagram, TikTok, and YouTube.
  • ๐Ÿ“ˆ Ad Boosting: Highly targeted paid advertising campaigns to drive leads, traffic, and sales to your business.

๐Ÿ“ž Connect With Us Instantly

Book your slot for online classes or get a premium tech service quote today!

๐Ÿ’ฌ WhatsApp: +94 729622034

๐Ÿ“ง Email: ITClassSL@gmail.com


๐ŸŒ Explore Our Resources & Communities

Stay updated with our latest tutorials, project ideas, and student guides across all our official platforms:

No comments:

Post a Comment