If the air outside your school gets worse, will the sensor records show when?
A school in Leeds puts an air quality sensor by its gate. A pupil asks when the highest reading happened last term. Could the school still find the answer? That depends on what the sensor sends and which records the school keeps.
An air quality sensor takes a reading. The school's record pairs that reading with a site and a time. What unit do you use for the size of the record? A byte is eight bits. The network carries the record, and the database stores it as a row.
Watch the gate sensor send one twelve-byte record to the school server. A second record brings the total to twenty-four bytes. For any number of records, multiply the size of one by the number sent. That counts record data only, without any extra network data.
The gate sensor sends five records, and each record takes twelve bytes. How many bytes of record data does it send? Ignore extra network data and pick an answer.
The gate sensor sends sixty records in one hour. At twelve bytes per record, multiply sixty by twelve to get seven hundred and twenty bytes. Multiply by eight bits per byte to get five thousand seven hundred and sixty bits of record data, excluding any extra network data.
During a shorter period, the sensor sends thirty records. Each record still takes twelve bytes. Calculate the total record data in bits, leaving out extra network data, and pick an answer.
The caretaker wants to know when the gate readings were above fifty. Select returns the time and value from each matching row. From names the Readings table. Where checks that the site is Gate, and the final line requires the reading to be greater than fifty.
A year of full records uses more storage, but the timestamps let you check whether an old peak coincided with school drop-off. The proposal keeps full records for thirty days and daily peaks for a year. You can still compare days, but you can't place older peaks within the school day.
If you're asked to explain why the proposal uses less storage, saying it saves space just repeats the claim. Give the reason: after thirty days, you keep one peak value per day instead of all the time-stamped readings from that day.
Written Paper Two lasts one hour and forty-five minutes and is worth ninety marks. For describe, give a feature, such as keeping full records for thirty days. For evaluate, weigh the storage saving against losing timestamps. Recommend a year of full records if the school needs exact times from last term.