GRADE 8 · COMPUTING · UNIT 2 · LESSON 2.6

Managing data

Fields, records and consistent formats

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

Topic 2.6 · Fields, records and consistent formats8 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Fields, records and consistent formats

A field stores one kind of attribute, while a record combines fields describing one item. Consistent data types and formats make comparisons reliable. A text export such as CSV does not preserve database validation rules.

Today’s two goals
  • Use the date example to explain why consistent representation matters; distinguish display format from an underlying date value.
  • Explain my method and support it with a labelled trace, example or test record.
Original PaxaKids illustration for Fields, records and consistent formats. Use the supplied program and data models for precise workbook facts.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Work through an example

In a fictional book table, BookID, Title and DueDate are fields. One row containing values for a particular book is a record. Agree an unambiguous date format before comparing dates.

Try before your workbook

Is a column of book titles a field or a record, and what describes one complete book entry?

Explore the clues

Tap one card to find out more.

Understand the idea

A field stores one kind of attribute, while a record combines fields describing one item. Consistent data types and formats make comparisons reliable. A text export such as CSV does not preserve database validation rules.

Concept to practise: Fields, records and consistent formats.

Work through an example

In a fictional book table, BookID, Title and DueDate are fields. One row containing values for a particular book is a record. Agree an unambiguous date format before comparing dates.

Try before your workbook

Is a column of book titles a field or a record, and what describes one complete book entry?

Check my readiness thinking

The title column is a field. A complete row of the defined fields is one record. Consistent formats help the records work together.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Make fields and records mean the same thing

A field stores one aspect of the items being described. A record groups the fields about one item. Consistent representation helps people and software interpret and compare that data.

This workbook uses invented library loan records. Due_text is deliberately stored as text for the first investigation. Later we distinguish that text from a verified date value and the format used to display it.

Inspect six original text-date records

For this investigation, preserve every Due_text string exactly. Source_format records the confirmed writing convention when known; it is not permission to guess an unknown convention. DD/MM/YYYY means day, month and four-digit year; YYYY-MM-DD starts with the year.
Inspect six original text-date records — original model
Loan_IDDue_textSource_format
L0103/04/2027DD/MM/YYYY
L023 April 2027Day Month YYYY
L032027-04-03YYYY-MM-DD
L0404/03/2027Unknown: clarify
L0531/04/2027DD/MM/YYYY
L06(missing)Not supplied

Test an exact stored-text search

Here an exact-text search compares the whole Due_text string character for character. It performs no date conversion. Complete the result IDs and counts. Write none when no string matches. This is a stated classroom comparison rule, not a claim about every database search mode.
Test an exact stored-text search — original model
Exact search textMatching IDCount
03/04/2027{'clue': 'ID', 'prompt': 'First exact search ID', 'answers': ['L01']}{'clue': 'Count', 'prompt': 'First exact search count', 'answers': ['1']}
2027-04-03{'clue': 'ID', 'prompt': 'Second exact search ID', 'answers': ['L03']}{'clue': 'Count', 'prompt': 'Second exact search count', 'answers': ['1']}
03.04.2027{'clue': 'ID', 'prompt': 'Third exact search ID', 'answers': ['none']}{'clue': 'Count', 'prompt': 'Third exact search count', 'answers': ['0']}

Separate a date value from its display

The confirmed source conventions show that L01, L02 and L03 all mean 3 April 2027. After correct conversion, a typed Date field can store that same date for each record. It can display as 03/04/2027 or 3 April 2027 without changing that date value.

Applying a display format is not the same as correctly converting stored text. Microsoft explains number formats and text-date conversion.

Check more than the arrangement of characters

Classify each value: Valid = existing date with confirmed meaning; Invalid = impossible calendar date; Clarify = meaning unconfirmed; Missing = absent value. A matching pattern alone does not prove a real or true date.
Check more than the arrangement of characters — original model
Original value and known contextStatus
03/04/2027; confirmed DD/MM/YYYY{'clue': 'Status', 'prompt': 'Confirmed real date', 'answers': ['Valid']}
31/04/2027; confirmed DD/MM/YYYY{'clue': 'Status', 'prompt': 'April calendar problem', 'answers': ['Invalid']}
04/03/2027; convention unknown{'clue': 'Status', 'prompt': 'Ambiguous source', 'answers': ['Clarify']}
Blank Due_text in L06{'clue': 'Status', 'prompt': 'Absent source date', 'answers': ['Missing']}

Normalize carefully and keep an audit trail

A consistent text representation for confirmed dates can use YYYY-MM-DD. Preserve the original field beside any normalized result. Convert only after checking the source convention and the calendar date; leave unresolved, invalid or missing records flagged for review.
  1. Preserve original text and verify source meaning
  2. Check that the calendar date exists
  3. Store a verified date or agreed normalized text
  4. Set a clear display and test the intended search

Files for this activity

Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Paxa the Fox

Try one step with Paxa!

Trace code in the stated order and preserve exact spelling and case. Use fictional data. Label a prediction, paper trace, simulator run and physical-device test separately; an unperformed test stays Pending. Save personal responses before leaving.

Our Unit 2 learning path
  1. Lesson 2.1: Models, simulators and useful features
  2. Lesson 2.2: Data for users and model designers
  3. Lesson 2.3: Spreadsheet models and what-if changes
  4. Lesson 2.4: Goal seek and checking a target
  5. Lesson 2.5: Data requirements and completeness
  6. Lesson 2.6: Fields, records and consistent formats
  7. Lesson 2.7: Presence checks and primary keys
  8. Lesson 2.8: Length and range checks
  9. Lesson 2.9: A validated entry form
  10. Lesson 2.10: Evaluating and designing a database
  11. Lesson 2.11: Project: Presentation time!
  12. Lesson 2.12: Check your progress 2
For grown-ups: using this lesson

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

2. Fill in your workbook

Read the teaching and complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

Fields, records and consistent formats8 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

TAKE YOUR PRACTICE OFFLINE

3. Download the student worksheet

All 8 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 8.1 MiB · No answer key included

Download worksheet PDF ↓

TRY FIRST, THEN CHECK TOGETHER

Download the student worksheet →

4. Answers & guidance

Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

Show answers for all 8 worksheets

Worksheet 1

  1. Question 1: Which describes one loan record? one row containing the fields about that loan

Worksheet 2

  1. Question 2: How many loan records are present, excluding the header? 6
  2. Question 3: How many fields are displayed in the table? 3

Worksheet 3

  1. Question 4: First exact search ID L01
  2. Question 5: First exact search count 1
  3. Question 6: Second exact search ID L03
  4. Question 7: Second exact search count 1
  5. Question 8: Third exact search ID none
  6. Question 9: Third exact search count 0
  7. Question 10: Why does the first search omit L02 even though its confirmed meaning is the same day? the stored text strings differ

Worksheet 4

  1. Question 11: A date-value equality query for 3 April 2027 in those three correctly converted records returns which IDs? L01, L02 and L03

Worksheet 5

  1. Question 12: Confirmed real date Valid
  2. Question 13: April calendar problem Invalid
  3. Question 14: Ambiguous source Clarify
  4. Question 15: Absent source date Missing
  5. Question 16: Why is 31/04/2027 invalid under day/month/year? April ends on day 30
  6. Question 17: What can a format check alone prove about a recorded due date? that it follows a specified pattern, not that it is the true due date

Worksheet 6

  1. Question 18: Write the normalized YYYY-MM-DD text for the confirmed date in L01–L03. 2027-04-03
  2. Question 19: What should happen to L04 before any conversion? clarify the source convention and intended date

Worksheet 7

  1. Question 20: Using all six original loan records, preserve the source table and prepare a review with original text, confirmed meaning, proposed normalized result and status. Show the three page 3 exact-text searches and their results. For L01–L03, explain why a correct date-value equality comparison for 3 April 2027 returns all three despite differing source strings. If software is available, import the raw field as text, build a separate correctly typed Date field for verified records, test the two search approaches and preserve actual evidence. Otherwise complete the paper comparison and mark software execution Pending. Do not guess or silently repair L04–L06. Record checks, corrections, retests and your contribution; cite your full work here. All six original records preserved. Exact matches:03/04/2027 ->L01 count1;2027-04-03 ->L03 count1;03.04.2027 ->none count0. Confirmed L01/L02/L03 mean3 April2027, normalized text2027-04-03 and same typed Date value, so equality matches all three in correctly converted example. L04 ambiguous convention Clarify;L05 April31 Invalid;L06 Missing; no guessing or invented correction. CSV raw strings/import-text concerns acknowledged; CSV does not store native date types. Actual software evidence or honest paper route/Pending, type-aware search settings and retained originals, correction/retest and own contribution. Grown-up review; personal evidence is required.

Worksheet 8

  1. Question 21: Create a short illustrated guide for a classmate explaining field, record, original text, normalized text, typed date value and display format. Use the loan example to show an exact-text search that misses an equivalent date string, a correctly converted date comparison that includes it, an ambiguous date that needs clarification and a date-like value that fails a calendar check. Explain why changing display alone is not a reliable repair for text data, and why a valid-looking entry can still be inaccurate. Give a clear date-entry instruction with four-digit years and one test plan. Record actual partner/teacher review or Pending, improve one part and cite the guide and evidence here. Accurate, accessible distinction of fields/records, text normalization, typed date value and visible format. Correct original examples and query results, confirmed source conventions respected, ambiguity/calendar invalidity/missing values handled honestly. Consistent entry instruction with four-digit year, meaningful valid/invalid/ambiguous test cases and expected outcomes. Validation checks rules, not truth; formatting is not assumed to convert arbitrary text correctly. Actual review or Pending, documented improvement and retained guide/evidence, no numerical grading. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Fields, records and consistent formats with this free Grade 8 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

Understand your results

Closed answers are checked in your browser. Drawings and written explanations need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.