Computer Science - 9210 OxfordAQA

Database Design

Overview

Nobody ever writes a database twice. The design decisions made in the first hour, which tables exist, what each field holds and which field identifies a record, are the ones everything afterwards is built on, and they are the ones that are painful to change once there is real data in the system. Getting them right is a skill, and it is a skill made of three specific choices rather than of general good taste.

This lesson teaches those three choices: picking an appropriate data type, and a length where a length is called for; selecting a suitable primary key; and turning a paragraph describing a situation into a set of linked tables. You will also learn the exact notation this specification uses to write a design down, which is worth knowing precisely, because a design written in the expected form is quick to mark and a design sketched informally is not.

Objectives

  1. Be able to choose appropriate data types and (where appropriate) lengths for fields in a table. Be able to select a suitable primary key for a table. Be able to produce a design for a relational database from a description of a scenario.

Mind map

This topic is mapped out so you can see how the ideas connect.

Open the mind map in the app

Lesson Note

Designing a relational database from a description means answering three questions, and answering them in this order saves a great deal of rework.

Complete Note Available on the Green Bridge App

Get the Green Bridge CBT app on your phone or computer for the complete IGCSE library: past papers, mark schemes, mind maps, flashcards and audio lessons.

Full lesson notes with diagrams
AI-powered learning assistant
Timed mock exams marked the moment you finish
Available on Android, Windows, macOS, and Linux iOS app coming soon

Lesson Evaluation

Congratulations on completing the lesson on Database Design. Now that youve explored the key concepts and ideas, its time to put your knowledge to the test. This section offers a variety of practice questions designed to reinforce your understanding and help you gauge your grasp of the material.

You will encounter a mix of question types, including multiple-choice questions, short answer questions, and essay questions. Each question is thoughtfully crafted to assess different aspects of your knowledge and critical thinking skills.

Use this evaluation section as an opportunity to reinforce your understanding of the topic and to identify any areas where you may need additional study. Don't be discouraged by any challenges you encounter; instead, view them as opportunities for growth and improvement.

  1. Which data type is most appropriate for a field storing a telephone number? A. Integer B. Real C. String D. Boolean Answer: C
  2. For which of these fields is it appropriate to give a length? A. A Boolean field recording whether a fee has been paid B. A string field holding a surname C. An integer field holding a quantity D. A real field holding a price Answer: B
  3. In the notation used by this specification, how is the primary key of a table indicated? A. It is written in capital letters B. It is underlined C. It is placed in square brackets D. It is written last in the list Answer: B
  4. One member may make many bookings, and each booking is made by one member. Where should the foreign key be placed? A. In the Member table B. In the Booking table C. In both tables D. In neither table Answer: B
  5. What is the maximum number of tables the specification says an examined design scenario will require? A. Two B. Three C. Four D. There is no limit Answer: B

Work through these questions in the app

Work through these questions in the app

Practice Mock Questions

Want to practice mock questions on Database Design? Download the Green Bridge CBT app to access mock questions and full practice assessments for this topic.

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning