Students will be able to choose the correct field type, size and sub‑type for numeric data (including percentages and a fixed number of decimal places), set the appropriate Format and Validation properties, and explain how these choices affect data entry, calculations, sorting, searching, importing, and reporting.
| Term | Meaning |
|---|---|
| Data Type | Broad category of data a field can hold (e.g., Number or Text). |
| Field Size | Specific storage size for a numeric field (e.g., Byte, Integer, Long Integer, Single, Double, Currency). |
| Sub‑type | Further description of a numeric field that tells the DBMS how to display and validate the value (e.g., Percentage, Decimal). |
| Format property | Pattern that controls the visual appearance of the value (e.g., 0.0%, £0.00). |
| Validation rule | Expression that restricts the values a user may enter (e.g., >=0 AND <=1 for a percentage field). |
| Primary key | Field (or combination of fields) that uniquely identifies each record in a table. |
| Foreign key | Field in a child table that refers to the primary key of a parent table, enforcing referential integrity. |
Number when the value will be used in calculations, sorting or searching. Use Text only for identifiers that contain letters or symbols (e.g., product codes like “A‑12”).Byte – 0 to 255 (suitable for very small lookup tables).Integer – –32 768 to 32 767.Long Integer – –2 147 483 648 to 2 147 483 647 (default for most ID fields).Single – ~7 decimal digits of precision (good for simple percentages).Double – ~15 decimal digits (recommended for percentages that need two or more decimal places).Currency – fixed‑point with four decimal places, ideal for money.Decimal – user‑defined precision and scale (available in some DBMSs).Integer or Long Integer.Percentage, Decimal or Floating‑point as a key sub‑type – this would break referential integrity and is not permitted by the syllabus.| Sub‑type | Typical Field Size | Internal storage (what the DBMS actually saves) | Display format (what the user sees) | Common uses |
|---|---|---|---|---|
| Integer | Byte, Integer, Long Integer | Whole number (e.g., 27) | 27 | Counts, IDs, ages, primary/foreign keys |
| Decimal (Fixed‑point) | Currency, Decimal, Single, Double | Exact value with a fixed number of decimal places (e.g., 12.50) | 0.00, £0.00, 0.000 | Money, measurements, tax rates |
| Floating‑point | Single, Double | Approximate value; may be stored in scientific notation (e.g., 1.23E‑4) | 0.000123, 1.23E‑4 | Scientific data, large calculations where tiny rounding errors are acceptable |
| Percentage | Single or Double (Double for higher precision) | Decimal fraction (e.g., 0.85 for 85 %) | 85 % (or 85.0 % if one decimal place is required) | Discounts, interest rates, statistical results |
Number (or Currency where available).Percentage for rates.Decimal (or Currency) for monetary or measurement values.Integer for IDs and keys.0.0%£0.000.00>=0 AND <=1 (because the stored value is a fraction).>=0 AND <=0.20.>=0.Percentage, the form control automatically appends a “%” symbol and will reject any entry greater than 1 (i.e., 100 %).Decimal or Currency fields, set the control’s Input Mask or Format property to match the table format (e.g., £0.00).DiscountRate.Number.Double (gives enough precision for two‑decimal‑place percentages).Percentage.0.0% (one decimal place).>=0 AND <=1.Result
0.15 and displays 15.0 %.FinalPrice: [Price] * (1 - [DiscountRate]).UnitPrice.Currency (or Number with sub‑type Decimal if Currency is unavailable).Currency (stores four decimal places internally).Decimal (or leave as default when using Currency).£0.00 (two decimal places for display).>=0 (price cannot be negative).Result
3.5 is stored as 3.5000 and shown as £3.50.FinalScore: [RawScore] * (1 - [PenaltyRate])
TotalPct: Sum([DiscountRate])*100
Decimal or Currency field is used in an aggregate function, the DBMS keeps the defined number of decimal places (e.g., two for money).3.567 and the format is 0.00, the screen shows 3.57 but the underlying value remains 3.567.Round([FieldName],2)=[FieldName] (Access) or round the data before it is saved.WHERE DiscountRate > 0.15 finds discounts greater than 15 %.Number field.Percentage).0.85. If the wizard treats the column as plain text, the values will be stored as 85, which is incorrect for calculations.0.0% for percentages, £0.00 for currency).[Score]*[Weight]) use the underlying 0.85 value.ExamScore that stores marks out of 100 and displays them as percentages with one decimal place. Write the complete set of steps (including field size, sub‑type, format and validation rule).123.456 is stored and displayed when the field’s sub‑type is Decimal (format 0.00) versus when the sub‑type is Floating‑point (no specific format). What are the practical consequences for calculations?12.5% on a form? Show the stored value and the displayed value.Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.