8 Databases - Cambridge AS & A Level Class 11 Computer Science Notes, Diagrams and Solved Questions

Why relational databases replace file-based storage, the key terms (keys, relationships, referential integrity, indexing), E-R diagrams, normalisation to 3NF, the features and tools of a DBMS, and SQL DDL and DML on two linked tables, with every query result checked in SQLite.

In this chapter

  • Limitations of a file-based approach and how a relational database addresses them
  • Entity, table, record, field, tuple, attribute and the primary, candidate, secondary and foreign keys
  • One-to-one, one-to-many and many-to-many relationships, referential integrity and indexing
  • Drawing E-R diagrams and resolving many-to-many relationships with a link entity
  • Normalising data to 1NF, 2NF and 3NF and explaining whether tables are in 3NF
  • DBMS features: data dictionary, data modelling, logical schema, integrity, security, developer interface and query processor
  • SQL DDL: CREATE DATABASE, CREATE TABLE with data types, ALTER TABLE, PRIMARY KEY and FOREIGN KEY
  • SQL DML: SELECT, WHERE, ORDER BY, GROUP BY, INNER JOIN, SUM, COUNT, AVG, INSERT INTO, UPDATE and DELETE FROM