Lesson ٢: Databases ٢
فيديو الشرح
الفيديو قيد الإنتاج، وسيظهر هنا فور اعتماده.
ماذا ستتعلم؟
- I identify the main ideas of the lesson
- I extract the key information
- I apply what I learned
- I connect cause and effect
- I review my answer
اختبر استعدادك أولًا
الشرح خطوة بخطوة
Level ١: We explore together
Lesson topic: Databases ٢. In this second lesson about databases we go one step deeper into how tables stay correct and connected.
The story: Every table needs a special field that never repeats, called the primary key, like a national ID number for each record. Tables can be connected: a students table and a grades table can be linked by the student ID. We ask a database questions using queries, and a common language for queries is called SQL. Good database design avoids repeating data, so each fact is stored once and updated in one place. In this lesson we learn about primary keys, linking tables, queries and SQL.
Level ٢: I review the idea
We review the key points of the lesson: What is a primary key? -> A field whose value is unique for every record in the table; Why must a primary key never repeat? -> So every record can be identified exactly.
We read each sentence again and mark its keyword.
Level ٣: I use what I learned
We apply what we learned by answering these questions: What is a primary key? -> A field whose value is unique for every record in the table; Why must a primary key never repeat? -> So every record can be identified exactly; What is a good primary key for a students table? -> A student ID number.
We explain why we rejected each wrong option before choosing the answer.
Level ٤: Games and activities
We take turns with a partner: one of us asks "What is a primary key?" and the other answers, then we switch roles.
We write a card for each idea of the lesson and order them as they appear in the explanation.
We summarize the lesson in three sentences in our own words without copying.
Level ٥: Mastery and review
I can: identify the main ideas of the lesson; extract the key information; apply what I learned.
We review after one day, then after three days. A short five-minute review is better than one long session.
Optional challenge: I write two new questions of my own about the lesson and ask a partner to answer them.
أخطاء شائعة وتصحيحها
- We answer "How are two tables connected?" with "By color": Correct: By a shared field such as the student ID
- We answer "What is a query?" with "A printed report only": Correct: A question we ask the database to get specific data
- We answer "What is SQL?" with "A drawing program": Correct: A common language for writing database queries
- We answer "Why do we avoid repeating data in database design?" with "To make tables longer": Correct: So each fact is updated once and stays consistent
أمثلة محلولة متدرجة
What is a primary key?
- نقرأ السؤال معًا بهدوء.
- Unique per record.
Why is a first name a bad primary key?
- نقرأ السؤال معًا بهدوء.
- Can two students share one?
What language do we commonly use to query databases?
- نقرأ السؤال معًا بهدوء.
- Three letters, starts with S.
A school has a students table and a payments table. Explain how to connect them.
- نقرأ السؤال معًا بهدوء.
- One shared field.
Explain why storing each fact once keeps a database consistent.
- نقرأ السؤال معًا بهدوء.
- One place to update.
Write in words a query a librarian might ask about books.
- نقرأ السؤال معًا بهدوء.
- A question about data.
A table uses phone number as a primary key. Give one risk and one fix.
- نقرأ السؤال معًا بهدوء.
- Numbers change.
Design two linked tables for a school clinic: name the tables, the primary keys, and the linking field.
- نقرأ السؤال معًا بهدوء.
- Students and visits.
Your friend says: "Repeating data in many tables makes a database safer." Is this correct?
- نقرأ السؤال معًا بهدوء.
- Copies can disagree.
الخريطة الذهنية
إنفوجرافيك: Lesson map: words of the day
We review the questions after one day, then after three days
تدريبات متنوعة مع الإجابات والتفسير
اكتب الإجابة أو اختر ثم اضغط. بعد كل سؤال يظهر الحل مع التفسير.
A) I choose the answer
B) I practice and answer
C) I review and play
ملخص صوتي وقارئ الدرس
قارئ تجريبي يعمل بصوت جهازك (مجاني). ليس تسجيلًا احترافيًا، وجودة الصوت العربي تختلف من جهاز لآخر. التسجيل الصوتي الاحترافي لم يُنتج بعد.
Lesson topic: Databases ٢. In this second lesson about databases we go one step deeper into how tables stay correct and connected.
We review the key points of the lesson: What is a primary key? -> A field whose value is unique for every record in the table; Why must a primary key never repeat? -> So every record can be identified exactly.
We apply what we learned by answering these questions: What is a primary key? -> A field whose value is unique for every record in the table; Why must a primary key never repeat? -> So every record can be identified exactly; What is a good primary key for a students table? -> A student ID number.
مسار المراجعة للامتحان
- Day one (١٠ minutes): We read levels ١ to ٣ together, then solve exercises (A).
- Day two (١٠ minutes): We play the level ٤ games and solve exercises (B).
- Day three (١٠ minutes): Exercises (C), then the Level One test.
- Before the school exam: We repeat the Level Three test and look at the common mistakes.
اختبارات بثلاثة مستويات
Level One Test: The Basics
٨ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.
Level Two Test: Application
١٠ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.
Level Three Test: The Challenge
٨ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.
المصادر والحقوق
- لا يوجد فيديو أو تسجيل صوتي احترافي بعد.
- Programming and Artificial Intelligence book (English edition), First Secondary Grade, Second Term, Egyptian Ministry of Education and Technical Education: the book was used to determine lesson scope, order and titles only (no text or exercises copied).
- Scope of this term from the official MOE Term ٢ curriculum distribution (February ٢٠٢٦): Unit ٨ Networks (lessons ٨-١ to ٨-٣), Unit ٩ Databases (٩-١, ٩-٢), Unit ١٢ Programming (١٢-١ to ١٢-٣) and Unit ١٣ Generative AI (١٣-١ to ١٣-٧); the English edition mirrors the Arabic book structure. All explanations, examples, exercises and tests were originally authored in English for this edition; they are not a translation of the Arabic text. Review is automated, not by a teacher.
- All explanations, examples, exercises and tests on this page are authored by I BOOK PRESS. Automated and author review only, without teacher review; no video or professional audio yet.