Notes-for-CAIE

1.8 Database and data modelling

1.8.1 Database Management Systems (DBMS)

Table/Relation: all the data about one entity Record/Tuple: the data in one row of a table Attribute: a column or field in a table

Developer Interface

Query processor

s16 11 Q8 [3]

Why web application uses server-side scripting [3]

1.8.2 Relational database modelling

Features of a rational database [4]

s16 11 Q8 [3]: comparing to file-based approach

Max 3 from each group

Referential integrity

w16 11 Q1 [3]

Normalization

1NF

2NF

3NF

When explaining why is not in 3NF, say also ... is dependent on ... which is not the primary key.

s15 12 Q9

1.8.3 Data Definition Language (DDL) and Data Manipulation Language (DML)

SQL scripts examples

Example 1

s16 s11 Q8 [4]

Table definition:

STUDENT(StudentID, FirstName, LastName, Year, TutorGroup)
CLASS-GROUP(StudentID, ClassID)

Task:

Display the LastName of all students who attend the class whose ClassID is CS1 SQL:

SELECT STUDENT.LastName
FROM STUDENT, CLASS-GROUP
WHERE ClassID = "CS1" // WHERE (ClassID = "CS1") 
AND CLASS-GROUP.StudentID = STUDENT.StudentID;