Topic 19 · Notes

Databases, server-side scripting and SQL

These notes are part of a subscription

13 sections covering the whole specification for this topic, with worked examples.

Preview

RDBMS, scripting and SQL: what the task asks

The use of RDBMS database systems, scripting languages and SQL is worth 15 of the 100 marks in Unit 4. It is the back end of your transactional website: the database, and the server-side code that talks to it.

What the specification covers

  • A relational database management system (RDBMS) to store, retrieve and manipulate the data behind the website's front end, with the database in third normal form (3NF)
  • Server-side scripting languages (such as PHP) that run on the web server, respond to the browser's HTTP requests, and send back a customised response for each one
  • SQL statements for every database action, using common commands and operators

What examiners said (2025)

  • Stronger work joined SQL and PHP together: create, read, update and delete (CRUD) operations, and pages built dynamically from the database
  • Weaker work had simple queries only, and didn't justify the choice of RDBMS
  • Marks for scripting and data processing were often too generous, so show clear evidence that your queries work with your front end: code, screenshots of the tables before and after, and the pages that use them

Also in these notes

  • What an RDBMS does, and choosing oneA2
  • Data types and constraintsA2
  • Creating the tables: CREATE, ALTER, DROPA2
  • Changing data: INSERT, UPDATE, DELETEA2
  • Reading data: SELECTA2
  • Aggregate functions and GROUP BYA2
  • Joining tablesA2
  • Server-side scripting: how a request worksA2
  • Sessions and logging inA2
  • Linking PHP to the database: CRUDA2
  • SQL injection and keeping the back end secureA2
  • RDBMS, scripting and SQL: checklistA2