Databases

Section: Applications  |  Syllabus: Cambridge IGCSE Information and Communication Technology (0417)

Create a Database Structure

Flat-File DatabaseRelational Database
Stores all data in a single tableStores data across multiple linked tables
Simple to set up and understandReduces data duplication by storing each fact once and linking to it
Data (e.g. a customer's address) may be duplicated every time it's neededMore complex to design, but much less duplicated/inconsistent data

Manipulate Data

Present Data

Worked Example: Writing a Database Search

Question: A school's database stores student records with fields StudentName, Year (numeric) and Club (text). State the criteria needed for a query to find all students in Year 9 or Year 10 who are members of the "Chess" club.

The student must be in the Chess club, and separately, in either of two possible years — so the year condition needs OR between the two allowed values, while the club condition is a separate, additional requirement joined with AND. Writing this clearly as criteria: Club = "Chess" AND (Year = 9 OR Year = 10). Answer

Club = "Chess" AND (Year = 9 OR Year = 10) — the brackets group the two acceptable years together so that the "AND Club = Chess" condition correctly applies to both of them.

Common Mistakes

MistakeUsing AND where OR is needed when a field must match one of several possible values

Fix"Year = 9 AND Year = 10" can never be true for a single record, since one field cannot hold two different values at once — matching either of two values needs OR, not AND

MistakeLetting a report print with column headings or data cut off at the edge of the page

Fixa report must display all the required data and labels in full — check column widths and page orientation/size before printing so nothing is truncated

Interactive revision notes, videos and practice questions load below.

Related: Past Papers Topical Questions IGCSE Computer Science Grade Boundaries Command Words