May/June 2026 Paper 13

2026 · 8 questions · 29 parts · 75 marks

0/75 marks
0Correct0Partial0Wrong29Unattempted
Filters0 active
4(a)Database NormalisationHard6 marks
A database needs designing for a school library. The library stores data about books including the author, title, category and number of pages. The library will also store data about the students and the books they have borrowed. The data needs to include the student's name and student's class. Books are borrowed for 14 days. A book is late if it has not been returned within the 14 days. The database needs to store whether the book is late, or not late. Create a 3-table design for the library database normalised to Third Normal Form (3NF). Give your table design in the format: TableName(Field1, Field2, Field3, …) Underline a primary key with a solid line and a foreign key with a broken line.
PenEraserUndoRedoClear
Draw with the mouse or a finger.
4(b)Database Management Systems Integrity SecurityMedium2 marks
Explain the reasons why the library database should enforce referential integrity.

Answer

0 words
4(c)(i)Sql Data Definition ManipulationHard4 marks
The school is also creating a database to store data about the departments, the staff and classes in the school. The database is called SCHOOLDATA. The database has four tables:
sql
STAFF(StaffID, FirstName, FamilyName, DepartmentID)DEPARTMENT(DepartmentID, DepartmentName, DepartmentLeader)CLASS(ClassID, YearGroup, SubjectCode)SUBJECT(SubjectCode, SubjectName, DepartmentID)
The table shows some sample data for SUBJECT.
SUBJECT
SubjectCodeSubjectNameDepartmentID
CS1Computer Science IGCSEITCS
CS2Computer Science IAS-levelITCS
MA3Mathematics IGCSEMTS
ME4Media IGCSEITCS
The Structured Query Language (SQL) scripts to create the database and the table SUBJECT are shown.
sql
01  CREATE DATA BASE SCHOOLDATA;02  CREATE TABLE SUBJECT(03      SubjectCode VARCHAR NONULL,04      SubjectName VARCHAR05      DepartmentID VARCHAR,06      PRIMARY KEY (SubjectCode),07      FOREIGN KEY (DepartmentID) REFERENCES (DepartmentID)08  );
The SQL scripts contain four errors. Give the line number of each error and the corrected line.

Answer

0 words
4(c)(ii)Sql QueriesHard5 marks
Write an SQL script to return each department's name and the number of subject codes for that department. The result needs to include a suitable field name for the number of subject codes. Order the results in ascending order of department name.
SQL script
0 words