Lesson 2.5 – Unit 2 Project โ SchoolHub Queries Challenge
Unit 2 Project SchoolHub Queries Challenge
Teacher's companion guide for Lesson 2.5: pacing, differentiation, checks for understanding, and quiz items.
Learning Objectives
By the end of this lesson, you will be able to:
- Synthesize skills from Lessons 2.1โ2.4 by applying SQL queries to a realistic project scenario.
- Continue building out the SchoolHub database schema and data as needed to support the project requirements (reinforcing DDL/DML from Unit 1 and earlier lessons).
- Develop a series of queries that answer specific questions about the SchoolHub data, scaffolding towards a final "report" or solution.
- Utilize an iterative development process: write queries, test them in the Knowledge Pillars Coding Lab, and refine as necessary.
- Evaluate your queries and results against a provided checklist and rubric, ensuring all requirements are met and reflecting on your readiness for certification exam tasks.
โฑ๏ธ Pacing & Materials
Suggested Pacing โ ~90 minutes
- Warm-up (5 min): Open with the lesson's real-world analogy. Ask 1โ2 students to restate it in their own words.
- Direct instruction (20 min): Walk through the Concept Explanation. Pause every few minutes for a quick check-for-understanding.
- Guided practice (15 min): Demonstrate a worked example, then have students attempt one with a partner.
- Independent / lab work (35 min): Students complete the Hands-On Practice and Coding Lab activities. Circulate to support.
- Wrap-up / exit ticket (10 min): Quick review of vocabulary plus an exit ticket question.
- Reflection (5 min): Preview the next lesson and assign any homework.
Materials needed
- Knowledge Pillars Coding Lab (or equivalent SQL sandbox) on every student's device.
- Whiteboard or shared screen for live SQL demos.
- Printed vocabulary handout (optional but recommended for ELL / reading-support students).
- The SchoolHub sample schema from Unit 1.
๐ Differentiation Strategies
Provide a printed reference card of the lesson's keywords and syntax. Pair struggling students with a confident partner for the Coding Lab and break the activity into one micro-step at a time.
Challenge advanced students to extend the lab task โ write a more complex query, add an extra column, or research a related advanced feature and present it to the class.
Sketch the query result as a table on the board before running it. Predict the shape, then compare to the actual output.
Have students physically arrange index cards representing rows and columns to model what each clause does to the data.
Use a driver/navigator model: one student types, the other dictates the query. Swap every 5 minutes.
Pre-teach the lesson's English vocabulary. Provide a glossary in students' first language where possible. Use lots of visuals.
โ Check for Understanding
Sprinkle these throughout the lesson โ not just at the end:
- "In one sentence, what does this lesson's main keyword do?"
- "What's an example from SchoolHub where you'd use this?"
- "What would happen if you forgot the semicolon at the end of this query?"
- "If you change the WHERE condition, what changes in the output? Predict before running."
- Exit ticket: Have students write the simplest query they can think of that uses the concept introduced today.
๐ Real-World Connection
Every consumer app โ Spotify, Instagram, Amazon, Netflix, the school grade portal โ runs SQL queries like the ones in this lesson, just at a much larger scale. Career connections to highlight:
- Data analyst โ writes SQL daily to answer business questions.
- Backend developer โ builds apps that issue SQL on every user request.
- Database administrator โ designs and maintains the systems SQL runs on.
- Business intelligence specialist โ turns SQL results into dashboards.
- Data scientist โ uses SQL as the first step before machine learning.
SQL is one of the most durable tech skills on the market โ a query you write today will still work in ten years.
๐ Extension Activities
- Schema scavenger hunt: Have students pick an app they use daily and list at least three SQL queries that app probably runs.
- Build the test cases: Ask students to invent two "tricky" data rows that should make the lesson's query behave unexpectedly, then run it and explain the result.
- Pair-and-share: Each student writes one query, swaps with a partner, and tries to predict the output before running it.
- Cross-unit link: Tie this lesson back to the SchoolHub schema from Unit 1 โ which tables are involved, and which earlier concepts (PK, FK, normalization) are at play?
๐งฐ Teacher Notes & Wrap-Up
Common stumbling blocks to watch for
- Students using smart-quotes (' ') instead of straight quotes (' ') โ fix at the editor level early.
- Missing semicolons at the end of statements.
- Confusing AND with OR in compound WHERE clauses.
- Spelling SQL keywords with mixed case where syntax matters (it usually doesn't, but it can confuse students).
- Skipping the planning step and trying to type before sketching the result on paper.
๐ Quiz Item Bank
Five quick-check items aligned to this lesson. Use them as a formative check, exit ticket, or short homework.
Q1. State, in your own words, what Unit 2 Project โ SchoolHub Queries Challenge accomplishes in SQL.
Q2. Write the simplest valid SQL statement that uses today's keyword.
Q3. Given a small sample table, predict the output of a query that uses this lesson's concept.
Q4. Identify the bug in this query: SELECT * Students;
FROM โ should be SELECT * FROM Students;.Q5. Connect this lesson to one earlier concept. How does today's skill build on what you already know?
