Cover lesson · Science · Year 7 · Beginner
DCF: Data and computational thinking → Data and information literacy
Name: Class: Date:
Print: this sheet, one per pupil. The whole database is printed on it as Table 1, so no computers are needed — pupils can answer every query by reading the table. If computers are available, the same eight records are in solar-system-data.csv and pupils can sort and filter for real. All the answers are on the example sheet.
Run: 5 min fields, records and data types · 20 min the six queries · 10 min the three spreadsheet functions · 10 min write two queries of your own and swap with a partner · 5 min the "surprising answer" question at the end.
Collect: this sheet. If computers were used, ask pupils to leave the file sorted by Number_of_Moons, largest first.
Table 1 is a database of the eight planets. Each row is a record and each column is a field. You are going to answer six questions by sorting and filtering it — the two things every database does — and then write two queries of your own. Every answer must come out of the table, not out of your head.
| Planet | Diameter_km | Distance_from_Sun_million_km | Orbital_Period_days | Number_of_Moons | Mean_Temperature_C | Has_Rings |
|---|---|---|---|---|---|---|
| Mercury | 4,879 | 57.9 | 88.0 | 0 | 167 | No |
| Venus | 12,104 | 108.2 | 224.7 | 0 | 464 | No |
| Earth | 12,756 | 149.6 | 365.2 | 1 | 15 | No |
| Mars | 6,792 | 228.0 | 687.0 | 2 | -65 | No |
| Jupiter | 142,984 | 778.5 | 4,331 | 95 | -110 | Yes |
| Saturn | 120,536 | 1,432.0 | 10,747 | 274 | -140 | Yes |
| Uranus | 51,118 | 2,867.0 | 30,589 | 28 | -195 | Yes |
| Neptune | 49,528 | 4,515.0 | 59,800 | 16 | -200 | Yes |
Source: NASA Planetary Fact Sheet. Moon counts are the confirmed totals — astronomers are still finding new ones, so this field changes.
| How many fields (columns)? | |
|---|---|
| How many records (rows)? | |
| Which field holds text? | |
| Which field can only ever be Yes or No? | |
| Which field contains negative numbers, and why does that matter when you sort it? | |
| Which field would make the best unique key for a record? |
| No. | Query | Answer |
|---|---|---|
| 1 | Sort by Diameter_km, smallest first. Which planet is first and which is last? | |
| 2 | Filter Number_of_Moons > 2. How many records match, and which are they? | |
| 3 | Filter Distance_from_Sun_million_km < 250 AND Mean_Temperature_C > 0. Which planets match? | |
| 4 | Sort by Orbital_Period_days, largest first. Which planet has the longest year, and how many days is it? | |
| 5 | Search for the planet with the shortest year. Name it and give the value. | |
| 6 | Filter Has_Rings = Yes AND Number_of_Moons < 30. Which planets match? |
If the moon counts sit in cells E2 to E9 of a spreadsheet, these three formulae give three different "averages" and totals. Work out each answer from Table 1.
| =SUM(E2:E9) | |
|---|---|
| =AVERAGE(E2:E9) | |
| =MEDIAN(E2:E9) | |
| The mean and the median are very different. Which one describes a typical planet better, and why? |
| My query (say sort, filter or search, and name the field) | The answer from Table 1 |
|---|---|
Sort the table by Distance_from_Sun_million_km, closest first, then look at Mean_Temperature_C. The hottest planet is not the closest one. Which planet is hottest, and write one sentence about what that tells you about drawing conclusions from a single field.