Exam skills: SQL and floating point questions – OCR A Level Computer Science lesson (H446)
Students learn to answer exam-style SQL and floating point questions with exact syntax, full working and answers in the form asked.
Lesson 13 of 14 in unit 13.1 Databases, SQL and Floating Point, taught in Year 13, Autumn 1. It answers one big question: How do you gain every mark on SQL and floating point questions?
By the end, students can answer exam-style SQL and floating point questions with exact syntax, full working and answers in the form asked.
- The Build (the main task)
- Write an SQL statement that adds a new Saltmere Ferries sailing to the Sailing table, then calculate the denary value of 10101000 0001 and normalise 00101100 0011, showing your working (10 marks).
- Support version
- A checklist card beside each part: SQL (field list, VALUES, quotes on text and dates, one statement); floating point (point after the sign bit, place values written, answer in the base asked, check it back).
- Challenge
- Write the SQL to give a 10% discount on every Brack fare booked by passengers whose email ends @saltmere.gov, using a subquery or a join.
- Real-world link
- Saltmere's database and sensor data return as exam-style questions.
- Key words
- SQL, Mantissa and Accurate, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “A correct value earns the marks even when no working is shown”; “Giving the answer in binary is fine when the question asks for denary”.
- OCR H446 specification
- 1.3.2 (d); 1.4.1 (g); (h).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Students can do it all on paper.
Also sold in the Databases, SQL and Floating Point unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Exam skills - SQL and floating point questions - Quiz Quiz Trade Cards
- Single-teacher licence: use and adapt it with your own classes
More for A Level Computer Science
See allStudents learn to write and interpret SQL queries using SELECT, FROM, WHERE (with AND, OR) and ORDER BY on one table.
Free sample lessonStudents learn to write SQL that joins two tables on a foreign key and filters records with LIKE and wildcards.
Students learn to write INSERT INTO, UPDATE, DELETE and DROP statements and predict exactly which records each one changes.
Written for the specifications named. Not endorsed by or affiliated with any exam board.