دليل المدرّب · PDFTrainer guide · PDF
تنزيل PDFDownload PDFحزمة المدرّب العامة الكاملةComplete public trainer pack
الأسبوع الخامس — حزمة المدرّبWeek 5 — Trainer pack
حزمة المدرّب هذه عامة. تبقى مهام بوابة الأساس الحية وبنوك المهام وملاحظات المقيمين ونتائج المشاركين والإجابات المكتملة وملاحظات الحلول المشروحة غير عامة.This trainer pack is public. Live Foundation Gate tasks, task banks, assessor notes, participant results, completed answers, and worked solution notes remain non-public.
تنزيلات المدرّبTrainer downloads
عرض الشرائح · PDFSlide deck · PDF
تنزيل PDFDownload PDFحالة الحل الكاملComplete solution status
يتوفر بعد التحقق ونافذة الاستدراك والإصدار المعتمد من المدرّبAvailable after the checkpoint, recovery window, and trainer-approved release
اليوم 1Day 1
اليوم 1 — الكيانات ومخططات العلاقاتDay 1 — entities and relationship diagrams
التحضيرPreparation
- اجتز تحقق الأسبوع الرابع للمستودع المختبر أو استخدم مسار الدعم المرتب.Pass the Week 4 tested-repository checkpoint or use the arranged supported path.
- افتح حزمة بداية الأسبوع الخامس كما هي وتحقق من توفر PostgreSQL وpsql محلياً دون كشف كلمة مرور أو رابط اتصال.Open the exact Week 5 starter and confirm local PostgreSQL and psql are available without exposing a password or connection URL.
المواد المطلوبةRequired materials
- تسلسل الشرائح العام لهذه الجلسة (3 شرائح).Public slide sequence for this session (3 slides).
- ورقة عمل المتعلم القابلة للطباعة للمهام المنشورة وعددها 1.Printable learner worksheet for the 1 published tasks.
- نسخة دون اتصال من الجلسة وتسميات الأدلة والملفات العامة المعتمدة.An offline copy of the session, evidence labels, and approved public files.
- حالات الإدخال الاصطناعية المقدمة فقط وعددها 4؛ دون بيانات مشاركين حقيقية.Only the 4 supplied synthetic input cases; no real participant data.
الأهدافObjectives
- افصل حقول الورشة المقدمة إلى مشاركين وجلسات وحجوزات وارسم كل علاقة دون تكرار الحقائق.Separate the supplied workshop fields into participants, sessions, and bookings and draw every relationship without duplicating facts.
- اشرح كل جدول ومفتاح وقيد ونتيجة استعلام باستخدام معرفات اصطناعية وأوامر محلية محجوبة فقط.Explain each table, key, constraint, and query result using only synthetic identifiers and redacted local commands.
جدول التنفيذ الدقيقExact run sheet
| الفقرةBlock | الدقائقMinutes | النمطMode | إجراء المدرّبTrainer action | إجراء المتعلّمLearner action |
|---|---|---|---|---|
| فصل الحقائق قبل كتابة SQLSeparate facts before writing SQL | 120 | تدريسInstruction | اعرض علاقة أو قاعدة SQL واحدة باستخدام الصفوف الاصطناعية المقدمة، وتتبعها بصرياً، وقدّم المصطلح الإنجليزي بعد الشرح العربي.Model one relationship or SQL rule using the supplied synthetic rows, trace it visually, and introduce the English term after the Arabic explanation. | توقّع الصفوف المتأثرة، واشرح المفاتيح والقيود، واحسب نتيجة الاستعلام المتوقعة قبل التنفيذ.Predict the affected rows, annotate keys and constraints, and calculate the expected query result before execution. |
| تدريب SQL موجّهGuided SQL practice | 60 | ممارسة موجّهةGuided practice | اعرض القرار الأول، واجمع التوقعات، ثم قلّل التلميحات بينما تستخدم الأزواج مجموعة البيانات الاصطناعية المنشورة فقط.Model the first decision, collect predictions, then fade prompts while pairs use only the published synthetic dataset. | صنّف الحقول المقدمة في ثلاثة صناديق وحدد الحقائق المتكررة وارسم سهمي المشارك إلى الحجز والجلسة إلى الحجز.Sort the supplied fields into three boxes, mark repeated facts, and draw participant-to-booking and session-to-booking arrows. |
| مختبر PostgreSQL بإشرافSupervised PostgreSQL lab | 120 | مختبر خاضع للإشرافSupervised lab | راقب قرارات المخطط الفردية، واطلب سبباً لكل مفتاح وقيد، وأوقف دخول أي بيانات دخول أو رابط اتصال أو سجل حقيقي إلى الأدلة.Observe individual schema decisions, require a reason for every key and constraint, and stop any credential, connection string, or real record from entering evidence. | أنشئ مخطط علاقات الجداول الثلاثة وسمِّ كل عمود ونوع بيانات وعلل لماذا لا تنتمي حقائق المشارك والجلسة إلى bookings.Create the three-table relationship diagram, name each column and data type, and justify why participant and session facts do not belong in bookings. |
ملاحظات الشرحExplanation notes
حقيقة واحدة ومالك واحدOne fact, one owner
افصل حقول الورشة المقدمة إلى مشاركين وجلسات وحجوزات وارسم كل علاقة دون تكرار الحقائق.Separate the supplied workshop fields into participants, sessions, and bookings and draw every relationship without duplicating facts.
يحفظ المخطط الموثوق كل حقيقة مرة واحدة، ويجعل العلاقات صريحة، ويرفض الحالات المستحيلة، وينتج نتائج استعلام يمكن التحقق منها يدوياً.A trustworthy schema stores each fact once, makes relationships explicit, rejects impossible states, and produces query results that can be checked by hand.
أمثلة العرضDemonstration examples
اسم العرض للمشارك يخص participants؛ والسعة تخص sessions؛ والحالة تخص bookingsparticipant label belongs to participants; capacity belongs to sessions; status belongs to bookingsتسلسل الشرائح والعرضSlide and demonstration sequence
تيسير الممارسة الموجّهةGuided-practice facilitation
- صنّف الحقول المقدمة في ثلاثة صناديق وحدد الحقائق المتكررة وارسم سهمي المشارك إلى الحجز والجلسة إلى الحجز.Sort the supplied fields into three boxes, mark repeated facts, and draw participant-to-booking and session-to-booking arrows.
تيسير المختبرLab facilitation
- اكتب الجداول أو الصفوف المتأثرة أو نتيجة الاستعلام المتوقعة قبل تنفيذ SQL.Write the expected tables, affected rows, or query result before executing SQL.
- أنشئ مخطط علاقات الجداول الثلاثة وسمِّ كل عمود ونوع بيانات وعلل لماذا لا تنتمي حقائق المشارك والجلسة إلى bookings.Create the three-table relationship diagram, name each column and data type, and justify why participant and session facts do not belong in bookings.
- شغّل باستخدام ON_ERROR_STOP وقارن المخرج بالمرجع المنشور وحدد أول مفتاح أو قيد أو جزء استعلام معطوب.Run with ON_ERROR_STOP, compare output with the published oracle, and identify the first broken key, constraint, or query clause.
- احفظ SQL المحجوب والمخرجات الاصطناعية والتعليل وملاحظة استخدام الذكاء الاصطناعي أو عدم استخدامه فقط في ملف الدليل المسمى.Save only redacted SQL, synthetic output, reasoning, and the AI-use or non-use note in the named evidence file.
الأدلة المتوقعةExpected evidence
- يسند مخطط الجداول الثلاثة المشروح كل حقيقة مقدمة إلى كيان واحد ويظهر علاقتي الحجز.The annotated three-table diagram assigns every supplied fact to one entity and shows both booking relationships.
w5d1-relationship-diagram-evidence
معايير التحقق المنشورةPublished checkpoint criteria
مهمة التحقق المنشورةPublished checkpoint prompt
صمّم ثلاثة جداول مترابطة بمفاتيح أساسية وخارجية وقيود واستعلامات SQL نموذجية.Design three related tables with primary keys, foreign keys, constraints, and sample SQL queries.
- للجداول الثلاثة مفاتيح أساسية ثابتة وعلاقات مفاتيح خارجية صالحة.All three tables have stable primary keys and valid foreign-key relationships.
- ترفض القيود صفاً اصطناعياً مستحيلاً واحداً على الأقل.Constraints reject at least one impossible synthetic row.
- تجيب استعلامات الربط والتجميع النموذجية عن أسئلتها المحددة بصورة صحيحة.Sample join and aggregate queries answer their stated questions correctly.
الأخطاء الشائعةCommon errors
- تُكرر حقائق المشارك أو الجلسة في الحجوزات فتنتج تحديثات غير متسقة.Participant or session facts are duplicated in bookings, creating inconsistent updates.
- يُذكر مفتاح أو قيد دون فرضه فيُقبل صف مستحيل.A key or constraint is named but not enforced, so an impossible row is accepted.
- يحذف الربط الداخلي بصمت الجلسات ذات الصفر أو المشاركين بلا حجز.An inner join silently removes zero-booking sessions or unbooked participants.
تدخلات المدرّبTrainer interventions
- ارجع إلى مخطط العلاقات ذي الصناديق الثلاثة وتتبع معرف P- وS- وB- واحداً قبل تعديل SQL.Return to the three-box relationship diagram and trace one P-, S-, and B- identifier before editing SQL.
- اطلب من المتعلم حساب الصفوف المتوقعة يدوياً ثم إصلاح أول جزء منحرف فقط.Ask the learner to calculate the expected rows by hand, then repair only the first divergent clause.
الاستدراكRecovery
خلال أسبوع واحد، أعد بناء مخطط الجداول الثلاثة من الصفوف المقدمة وصحح أول مفتاح أو قيد أو استعلام معطوب وأعد تشغيل الدليل الاصطناعي نفسه ثم أعد تقديم مخطط العلاقات المشروح.Within one week, rebuild the three-table diagram from the supplied rows, correct the first broken key, constraint, or query, rerun the same synthetic evidence, and resubmit the annotated relationship diagram.
البديل عند الانقطاعInterruption fallback
استخدم العرض المسجّل والحزمة العربية القابلة للتنزيل والنسخة المحلية من البداية؛ واعتمد دليلاً مكافئاً عن بُعد أو دون اتصال بعد أن يسجل المنسق الانقطاع.Use the recorded demonstration, downloadable Arabic-first pack and local starter copy; approve equivalent remote or offline evidence after the coordinator records the interruption.
الخصوصية والذكاء الاصطناعيPrivacy and AI reminders
الخصوصيةPrivacy
استخدم صفوف الورشة الخيالية المقدمة فقط. لا تستورد قوائم تسجيل أو أسماء أو بيانات اتصال أو بيانات دخول أو روابط اتصال أو مجلدات بيانات PostgreSQL.Use only the supplied fictional workshop rows. Never import registration sheets, names, contact details, credentials, connection strings, or PostgreSQL data directories.
الذكاء الاصطناعي المسؤولResponsible AI
يمكن للذكاء الاصطناعي نقد جدول أو استعلام محجوب واحد بعد أن يتوقع المتعلم النتيجة. ولا يجوز أن ينشئ مخطط التحقق الكامل؛ وكل اقتراح مقبول يحتاج دليلاً محلياً من PostgreSQL.AI may critique one redacted table or query after the learner predicts the result. It must not generate the complete checkpoint schema; every accepted suggestion requires local PostgreSQL evidence.
نص التسجيلRecording script
السردNarration
- قدّم فصل الحقائق قبل كتابة SQL وسمِّ الدليل المتوقع واشرح التعليل دون كشف مخطط تحقق مكتمل.Introduce separate facts before writing sql, name the expected evidence, and explain the reasoning without revealing a completed checkpoint schema.
إجراءات الشاشةScreen actions
- اعرض SQL بمسارات نسبية للمشروع وصفوف P-/S-/B- الاصطناعية ومخرج psql المحلي ومخطط العلاقات فقط؛ وأخفِ كلمات المرور وروابط الاتصال وأسماء المستخدمين ومجلدات قاعدة البيانات.Show only project-relative SQL, the synthetic P-/S-/B- rows, local psql output, and the relationship diagram; hide passwords, connection URLs, usernames, and database directories.
النصوص الظاهرةCaptions
- اكتب في الترجمة دور كل جدول واتجاه المفتاح والقاعدة المرفوضة وسؤال الاستعلام والنتيجة بالعربية أولاً ثم الإنجليزية.Caption each table role, key direction, rejected rule, query question, and result in Arabic first and English second.
نقاط التوقفPause points
- توقف قبل التنفيذ للتوقع وقبل حفظ الدليل لفحص بيانات الدخول والبيانات الحقيقية.Pause before execution for a prediction and before saving evidence for a credential and real-data scan.
قائمة التحقق من التسجيلRecording checklist
- تحقق من حزمة بداية الأسبوع الخامس كما هي وPostgreSQL المحلي والجداول الثلاثة المترابطة والصفوف الاصطناعية والحالة المستحيلة المرفوضة ومخرج الاستعلام المتحقق منه يدوياً وعدم وجود بيانات دخول أو حل مكتمل ووضوح مسار الاستدراك.Confirm the exact Week 5 starter, local PostgreSQL, three related tables, synthetic rows, rejected impossible state, hand-checked query output, no credentials, no completed solution, and visible recovery route.
اليوم 2Day 2
اليوم 2 — المفاتيح الأساسية والخارجية والتطبيعDay 2 — primary keys, foreign keys, and normalisation
التحضيرPreparation
- اجتز تحقق الأسبوع الرابع للمستودع المختبر أو استخدم مسار الدعم المرتب.Pass the Week 4 tested-repository checkpoint or use the arranged supported path.
- افتح حزمة بداية الأسبوع الخامس كما هي وتحقق من توفر PostgreSQL وpsql محلياً دون كشف كلمة مرور أو رابط اتصال.Open the exact Week 5 starter and confirm local PostgreSQL and psql are available without exposing a password or connection URL.
المواد المطلوبةRequired materials
- تسلسل الشرائح العام لهذه الجلسة (3 شرائح).Public slide sequence for this session (3 slides).
- ورقة عمل المتعلم القابلة للطباعة للمهام المنشورة وعددها 1.Printable learner worksheet for the 1 published tasks.
- نسخة دون اتصال من الجلسة وتسميات الأدلة والملفات العامة المعتمدة.An offline copy of the session, evidence labels, and approved public files.
- حالات الإدخال الاصطناعية المقدمة فقط وعددها 4؛ دون بيانات مشاركين حقيقية.Only the 4 supplied synthetic input cases; no real participant data.
الأهدافObjectives
- اختر مفاتيح أساسية ثابتة للجداول الثلاثة وأضف مفتاحي الحجز الخارجيين وأثبت أن التصميم يحفظ كل حقيقة مرة واحدة.Choose stable primary keys for all three tables, add the two booking foreign keys, and prove the design stores each fact once.
- اشرح كل جدول ومفتاح وقيد ونتيجة استعلام باستخدام معرفات اصطناعية وأوامر محلية محجوبة فقط.Explain each table, key, constraint, and query result using only synthetic identifiers and redacted local commands.
جدول التنفيذ الدقيقExact run sheet
| الفقرةBlock | الدقائقMinutes | النمطMode | إجراء المدرّبTrainer action | إجراء المتعلّمLearner action |
|---|---|---|---|---|
| جعل الهوية والمراجع قابلة للفرضMake identity and references enforceable | 120 | تدريسInstruction | اعرض علاقة أو قاعدة SQL واحدة باستخدام الصفوف الاصطناعية المقدمة، وتتبعها بصرياً، وقدّم المصطلح الإنجليزي بعد الشرح العربي.Model one relationship or SQL rule using the supplied synthetic rows, trace it visually, and introduce the English term after the Arabic explanation. | توقّع الصفوف المتأثرة، واشرح المفاتيح والقيود، واحسب نتيجة الاستعلام المتوقعة قبل التنفيذ.Predict the affected rows, annotate keys and constraints, and calculate the expected query result before execution. |
| تدريب SQL موجّهGuided SQL practice | 60 | ممارسة موجّهةGuided practice | اعرض القرار الأول، واجمع التوقعات، ثم قلّل التلميحات بينما تستخدم الأزواج مجموعة البيانات الاصطناعية المنشورة فقط.Model the first decision, collect predictions, then fade prompts while pairs use only the published synthetic dataset. | تتبع B-301 عبر الجدولين الأبويين ثم توقع الصفوف اليتيمة والمكررة التي يجب أن يرفضها كل مفتاح.Trace B-301 through both parent tables, then predict which orphan and duplicate rows each key must reject. |
| مختبر PostgreSQL بإشرافSupervised PostgreSQL lab | 120 | مختبر خاضع للإشرافSupervised lab | راقب قرارات المخطط الفردية، واطلب سبباً لكل مفتاح وقيد، وأوقف دخول أي بيانات دخول أو رابط اتصال أو سجل حقيقي إلى الأدلة.Observe individual schema decisions, require a reason for every key and constraint, and stop any credential, connection string, or real record from entering evidence. | اكتب تعريفات الجداول الثلاثة بمفاتيح أساسية ثابتة ومفاتيح خارجية للحجز وحمّل الصفوف الاصطناعية الصالحة وافحص العلاقات الناتجة.Write the three table definitions with stable primary keys and booking foreign keys, load the valid synthetic rows, and inspect the resulting relationships. |
ملاحظات الشرحExplanation notes
الهوية أولاً والمرجع ثانياًIdentity first, reference second
اختر مفاتيح أساسية ثابتة للجداول الثلاثة وأضف مفتاحي الحجز الخارجيين وأثبت أن التصميم يحفظ كل حقيقة مرة واحدة.Choose stable primary keys for all three tables, add the two booking foreign keys, and prove the design stores each fact once.
يحفظ المخطط الموثوق كل حقيقة مرة واحدة، ويجعل العلاقات صريحة، ويرفض الحالات المستحيلة، وينتج نتائج استعلام يمكن التحقق منها يدوياً.A trustworthy schema stores each fact once, makes relationships explicit, rejects impossible states, and produces query results that can be checked by hand.
أمثلة العرضDemonstration examples
يحدد B-301 حجزاً واحداً؛ ويشير P-101 وS-201 إلى مشاركه وجلستهB-301 identifies one booking; P-101 and S-201 reference its participant and sessionتسلسل الشرائح والعرضSlide and demonstration sequence
تيسير الممارسة الموجّهةGuided-practice facilitation
- تتبع B-301 عبر الجدولين الأبويين ثم توقع الصفوف اليتيمة والمكررة التي يجب أن يرفضها كل مفتاح.Trace B-301 through both parent tables, then predict which orphan and duplicate rows each key must reject.
تيسير المختبرLab facilitation
- اكتب الجداول أو الصفوف المتأثرة أو نتيجة الاستعلام المتوقعة قبل تنفيذ SQL.Write the expected tables, affected rows, or query result before executing SQL.
- اكتب تعريفات الجداول الثلاثة بمفاتيح أساسية ثابتة ومفاتيح خارجية للحجز وحمّل الصفوف الاصطناعية الصالحة وافحص العلاقات الناتجة.Write the three table definitions with stable primary keys and booking foreign keys, load the valid synthetic rows, and inspect the resulting relationships.
- شغّل باستخدام ON_ERROR_STOP وقارن المخرج بالمرجع المنشور وحدد أول مفتاح أو قيد أو جزء استعلام معطوب.Run with ON_ERROR_STOP, compare output with the published oracle, and identify the first broken key, constraint, or query clause.
- احفظ SQL المحجوب والمخرجات الاصطناعية والتعليل وملاحظة استخدام الذكاء الاصطناعي أو عدم استخدامه فقط في ملف الدليل المسمى.Save only redacted SQL, synthetic output, reasoning, and the AI-use or non-use note in the named evidence file.
الأدلة المتوقعةExpected evidence
- تثبت خريطة المفاتيح والتحميل الصالح ثلاث هويات ثابتة ومرجعين صالحين وعدم تكرار حقائق المشارك أو الجلسة.The key map and valid load prove three stable identities, two valid references, and no duplicated participant or session facts.
w5d2-keys-normalisation-evidence
معايير التحقق المنشورةPublished checkpoint criteria
مهمة التحقق المنشورةPublished checkpoint prompt
صمّم ثلاثة جداول مترابطة بمفاتيح أساسية وخارجية وقيود واستعلامات SQL نموذجية.Design three related tables with primary keys, foreign keys, constraints, and sample SQL queries.
- للجداول الثلاثة مفاتيح أساسية ثابتة وعلاقات مفاتيح خارجية صالحة.All three tables have stable primary keys and valid foreign-key relationships.
- ترفض القيود صفاً اصطناعياً مستحيلاً واحداً على الأقل.Constraints reject at least one impossible synthetic row.
- تجيب استعلامات الربط والتجميع النموذجية عن أسئلتها المحددة بصورة صحيحة.Sample join and aggregate queries answer their stated questions correctly.
الأخطاء الشائعةCommon errors
- تُكرر حقائق المشارك أو الجلسة في الحجوزات فتنتج تحديثات غير متسقة.Participant or session facts are duplicated in bookings, creating inconsistent updates.
- يُذكر مفتاح أو قيد دون فرضه فيُقبل صف مستحيل.A key or constraint is named but not enforced, so an impossible row is accepted.
- يحذف الربط الداخلي بصمت الجلسات ذات الصفر أو المشاركين بلا حجز.An inner join silently removes zero-booking sessions or unbooked participants.
تدخلات المدرّبTrainer interventions
- ارجع إلى مخطط العلاقات ذي الصناديق الثلاثة وتتبع معرف P- وS- وB- واحداً قبل تعديل SQL.Return to the three-box relationship diagram and trace one P-, S-, and B- identifier before editing SQL.
- اطلب من المتعلم حساب الصفوف المتوقعة يدوياً ثم إصلاح أول جزء منحرف فقط.Ask the learner to calculate the expected rows by hand, then repair only the first divergent clause.
الاستدراكRecovery
خلال أسبوع واحد، أعد بناء مخطط الجداول الثلاثة من الصفوف المقدمة وصحح أول مفتاح أو قيد أو استعلام معطوب وأعد تشغيل الدليل الاصطناعي نفسه ثم أعد تقديم دليل المفاتيح والتطبيع.Within one week, rebuild the three-table diagram from the supplied rows, correct the first broken key, constraint, or query, rerun the same synthetic evidence, and resubmit the key and normalisation evidence.
البديل عند الانقطاعInterruption fallback
استخدم العرض المسجّل والحزمة العربية القابلة للتنزيل والنسخة المحلية من البداية؛ واعتمد دليلاً مكافئاً عن بُعد أو دون اتصال بعد أن يسجل المنسق الانقطاع.Use the recorded demonstration, downloadable Arabic-first pack and local starter copy; approve equivalent remote or offline evidence after the coordinator records the interruption.
الخصوصية والذكاء الاصطناعيPrivacy and AI reminders
الخصوصيةPrivacy
استخدم صفوف الورشة الخيالية المقدمة فقط. لا تستورد قوائم تسجيل أو أسماء أو بيانات اتصال أو بيانات دخول أو روابط اتصال أو مجلدات بيانات PostgreSQL.Use only the supplied fictional workshop rows. Never import registration sheets, names, contact details, credentials, connection strings, or PostgreSQL data directories.
الذكاء الاصطناعي المسؤولResponsible AI
يمكن للذكاء الاصطناعي نقد جدول أو استعلام محجوب واحد بعد أن يتوقع المتعلم النتيجة. ولا يجوز أن ينشئ مخطط التحقق الكامل؛ وكل اقتراح مقبول يحتاج دليلاً محلياً من PostgreSQL.AI may critique one redacted table or query after the learner predicts the result. It must not generate the complete checkpoint schema; every accepted suggestion requires local PostgreSQL evidence.
نص التسجيلRecording script
السردNarration
- قدّم جعل الهوية والمراجع قابلة للفرض وسمِّ الدليل المتوقع واشرح التعليل دون كشف مخطط تحقق مكتمل.Introduce make identity and references enforceable, name the expected evidence, and explain the reasoning without revealing a completed checkpoint schema.
إجراءات الشاشةScreen actions
- اعرض SQL بمسارات نسبية للمشروع وصفوف P-/S-/B- الاصطناعية ومخرج psql المحلي ومخطط العلاقات فقط؛ وأخفِ كلمات المرور وروابط الاتصال وأسماء المستخدمين ومجلدات قاعدة البيانات.Show only project-relative SQL, the synthetic P-/S-/B- rows, local psql output, and the relationship diagram; hide passwords, connection URLs, usernames, and database directories.
النصوص الظاهرةCaptions
- اكتب في الترجمة دور كل جدول واتجاه المفتاح والقاعدة المرفوضة وسؤال الاستعلام والنتيجة بالعربية أولاً ثم الإنجليزية.Caption each table role, key direction, rejected rule, query question, and result in Arabic first and English second.
نقاط التوقفPause points
- توقف قبل التنفيذ للتوقع وقبل حفظ الدليل لفحص بيانات الدخول والبيانات الحقيقية.Pause before execution for a prediction and before saving evidence for a credential and real-data scan.
قائمة التحقق من التسجيلRecording checklist
- تحقق من حزمة بداية الأسبوع الخامس كما هي وPostgreSQL المحلي والجداول الثلاثة المترابطة والصفوف الاصطناعية والحالة المستحيلة المرفوضة ومخرج الاستعلام المتحقق منه يدوياً وعدم وجود بيانات دخول أو حل مكتمل ووضوح مسار الاستدراك.Confirm the exact Week 5 starter, local PostgreSQL, three related tables, synthetic rows, rejected impossible state, hand-checked query output, no credentials, no completed solution, and visible recovery route.
اليوم 3Day 3
اليوم 3 — القيود والحالات المرفوضةDay 3 — constraints and rejected states
التحضيرPreparation
- اجتز تحقق الأسبوع الرابع للمستودع المختبر أو استخدم مسار الدعم المرتب.Pass the Week 4 tested-repository checkpoint or use the arranged supported path.
- افتح حزمة بداية الأسبوع الخامس كما هي وتحقق من توفر PostgreSQL وpsql محلياً دون كشف كلمة مرور أو رابط اتصال.Open the exact Week 5 starter and confirm local PostgreSQL and psql are available without exposing a password or connection URL.
المواد المطلوبةRequired materials
- تسلسل الشرائح العام لهذه الجلسة (3 شرائح).Public slide sequence for this session (3 slides).
- ورقة عمل المتعلم القابلة للطباعة للمهام المنشورة وعددها 1.Printable learner worksheet for the 1 published tasks.
- نسخة دون اتصال من الجلسة وتسميات الأدلة والملفات العامة المعتمدة.An offline copy of the session, evidence labels, and approved public files.
- حالات الإدخال الاصطناعية المقدمة فقط وعددها 4؛ دون بيانات مشاركين حقيقية.Only the 4 supplied synthetic input cases; no real participant data.
الأهدافObjectives
- افرض القيم المطلوبة والمتفردة والسعة الموجبة وحالات الحجز المسموحة وحجزاً واحداً للمشارك في الجلسة ثم احفظ دليل رفض مضبوطاً.Enforce required and unique values, positive capacity, allowed booking statuses, and one participant booking per session, then capture controlled rejection evidence.
- اشرح كل جدول ومفتاح وقيد ونتيجة استعلام باستخدام معرفات اصطناعية وأوامر محلية محجوبة فقط.Explain each table, key, constraint, and query result using only synthetic identifiers and redacted local commands.
جدول التنفيذ الدقيقExact run sheet
| الفقرةBlock | الدقائقMinutes | النمطMode | إجراء المدرّبTrainer action | إجراء المتعلّمLearner action |
|---|---|---|---|---|
| تحويل قواعد البيانات إلى قيود قاعدةTurn data rules into database rules | 120 | تدريسInstruction | اعرض علاقة أو قاعدة SQL واحدة باستخدام الصفوف الاصطناعية المقدمة، وتتبعها بصرياً، وقدّم المصطلح الإنجليزي بعد الشرح العربي.Model one relationship or SQL rule using the supplied synthetic rows, trace it visually, and introduce the English term after the Arabic explanation. | توقّع الصفوف المتأثرة، واشرح المفاتيح والقيود، واحسب نتيجة الاستعلام المتوقعة قبل التنفيذ.Predict the affected rows, annotate keys and constraints, and calculate the expected query result before execution. |
| تدريب SQL موجّهGuided SQL practice | 60 | ممارسة موجّهةGuided practice | اعرض القرار الأول، واجمع التوقعات، ثم قلّل التلميحات بينما تستخدم الأزواج مجموعة البيانات الاصطناعية المنشورة فقط.Model the first decision, collect predictions, then fade prompts while pairs use only the published synthetic dataset. | طابق كل صف مستحيل منشور مع حماية NOT NULL أو UNIQUE أو المفتاح الخارجي أو CHECK للنطاق قبل تنفيذه.Match each published impossible row to NOT NULL, UNIQUE, foreign-key, or domain CHECK protection before executing it. |
| مختبر PostgreSQL بإشرافSupervised PostgreSQL lab | 120 | مختبر خاضع للإشرافSupervised lab | راقب قرارات المخطط الفردية، واطلب سبباً لكل مفتاح وقيد، وأوقف دخول أي بيانات دخول أو رابط اتصال أو سجل حقيقي إلى الأدلة.Observe individual schema decisions, require a reason for every key and constraint, and stop any credential, connection string, or real record from entering evidence. | أضف القيود المطلوبة وأعد تحميل الصفوف الصالحة وحاول إدخال صف السعة صفر وصف الحالة unknown داخل معاملات قابلة للاستعادة واحفظ رسائل الرفض الآمنة.Add the required constraints, reload valid rows, attempt the capacity-zero and unknown-status rows inside recoverable transactions, and save the safe rejection messages. |
ملاحظات الشرحExplanation notes
رفض الحالات المستحيلة عند الحدReject impossible states at the boundary
افرض القيم المطلوبة والمتفردة والسعة الموجبة وحالات الحجز المسموحة وحجزاً واحداً للمشارك في الجلسة ثم احفظ دليل رفض مضبوطاً.Enforce required and unique values, positive capacity, allowed booking statuses, and one participant booking per session, then capture controlled rejection evidence.
يحفظ المخطط الموثوق كل حقيقة مرة واحدة، ويجعل العلاقات صريحة، ويرفض الحالات المستحيلة، وينتج نتائج استعلام يمكن التحقق منها يدوياً.A trustworthy schema stores each fact once, makes relationships explicit, rejects impossible states, and produces query results that can be checked by hand.
أمثلة العرضDemonstration examples
السعة 0 ← مرفوضة؛ الحالة unknown ← مرفوضة؛ زوج المشارك/الجلسة المكرر ← مرفوضcapacity 0 → rejected; status unknown → rejected; duplicate participant/session pair → rejectedتسلسل الشرائح والعرضSlide and demonstration sequence
تيسير الممارسة الموجّهةGuided-practice facilitation
- طابق كل صف مستحيل منشور مع حماية NOT NULL أو UNIQUE أو المفتاح الخارجي أو CHECK للنطاق قبل تنفيذه.Match each published impossible row to NOT NULL, UNIQUE, foreign-key, or domain CHECK protection before executing it.
تيسير المختبرLab facilitation
- اكتب الجداول أو الصفوف المتأثرة أو نتيجة الاستعلام المتوقعة قبل تنفيذ SQL.Write the expected tables, affected rows, or query result before executing SQL.
- أضف القيود المطلوبة وأعد تحميل الصفوف الصالحة وحاول إدخال صف السعة صفر وصف الحالة unknown داخل معاملات قابلة للاستعادة واحفظ رسائل الرفض الآمنة.Add the required constraints, reload valid rows, attempt the capacity-zero and unknown-status rows inside recoverable transactions, and save the safe rejection messages.
- شغّل باستخدام ON_ERROR_STOP وقارن المخرج بالمرجع المنشور وحدد أول مفتاح أو قيد أو جزء استعلام معطوب.Run with ON_ERROR_STOP, compare output with the published oracle, and identify the first broken key, constraint, or query clause.
- احفظ SQL المحجوب والمخرجات الاصطناعية والتعليل وملاحظة استخدام الذكاء الاصطناعي أو عدم استخدامه فقط في ملف الدليل المسمى.Save only redacted SQL, synthetic output, reasoning, and the AI-use or non-use note in the named evidence file.
الأدلة المتوقعةExpected evidence
- تثبت مصفوفة القواعد والإخفاقات المضبوطة فرض السعة الموجبة والحالة المسموحة والقيم المطلوبة والتفرد.The rule matrix and controlled failures prove positive capacity, allowed status, required values, and uniqueness are enforced.
w5d3-constraints-rejection-evidence
معايير التحقق المنشورةPublished checkpoint criteria
مهمة التحقق المنشورةPublished checkpoint prompt
صمّم ثلاثة جداول مترابطة بمفاتيح أساسية وخارجية وقيود واستعلامات SQL نموذجية.Design three related tables with primary keys, foreign keys, constraints, and sample SQL queries.
- للجداول الثلاثة مفاتيح أساسية ثابتة وعلاقات مفاتيح خارجية صالحة.All three tables have stable primary keys and valid foreign-key relationships.
- ترفض القيود صفاً اصطناعياً مستحيلاً واحداً على الأقل.Constraints reject at least one impossible synthetic row.
- تجيب استعلامات الربط والتجميع النموذجية عن أسئلتها المحددة بصورة صحيحة.Sample join and aggregate queries answer their stated questions correctly.
الأخطاء الشائعةCommon errors
- تُكرر حقائق المشارك أو الجلسة في الحجوزات فتنتج تحديثات غير متسقة.Participant or session facts are duplicated in bookings, creating inconsistent updates.
- يُذكر مفتاح أو قيد دون فرضه فيُقبل صف مستحيل.A key or constraint is named but not enforced, so an impossible row is accepted.
- يحذف الربط الداخلي بصمت الجلسات ذات الصفر أو المشاركين بلا حجز.An inner join silently removes zero-booking sessions or unbooked participants.
تدخلات المدرّبTrainer interventions
- ارجع إلى مخطط العلاقات ذي الصناديق الثلاثة وتتبع معرف P- وS- وB- واحداً قبل تعديل SQL.Return to the three-box relationship diagram and trace one P-, S-, and B- identifier before editing SQL.
- اطلب من المتعلم حساب الصفوف المتوقعة يدوياً ثم إصلاح أول جزء منحرف فقط.Ask the learner to calculate the expected rows by hand, then repair only the first divergent clause.
الاستدراكRecovery
خلال أسبوع واحد، أعد بناء مخطط الجداول الثلاثة من الصفوف المقدمة وصحح أول مفتاح أو قيد أو استعلام معطوب وأعد تشغيل الدليل الاصطناعي نفسه ثم أعد تقديم دليل القيود والرفض.Within one week, rebuild the three-table diagram from the supplied rows, correct the first broken key, constraint, or query, rerun the same synthetic evidence, and resubmit the constraint and rejection evidence.
البديل عند الانقطاعInterruption fallback
استخدم العرض المسجّل والحزمة العربية القابلة للتنزيل والنسخة المحلية من البداية؛ واعتمد دليلاً مكافئاً عن بُعد أو دون اتصال بعد أن يسجل المنسق الانقطاع.Use the recorded demonstration, downloadable Arabic-first pack and local starter copy; approve equivalent remote or offline evidence after the coordinator records the interruption.
الخصوصية والذكاء الاصطناعيPrivacy and AI reminders
الخصوصيةPrivacy
استخدم صفوف الورشة الخيالية المقدمة فقط. لا تستورد قوائم تسجيل أو أسماء أو بيانات اتصال أو بيانات دخول أو روابط اتصال أو مجلدات بيانات PostgreSQL.Use only the supplied fictional workshop rows. Never import registration sheets, names, contact details, credentials, connection strings, or PostgreSQL data directories.
الذكاء الاصطناعي المسؤولResponsible AI
يمكن للذكاء الاصطناعي نقد جدول أو استعلام محجوب واحد بعد أن يتوقع المتعلم النتيجة. ولا يجوز أن ينشئ مخطط التحقق الكامل؛ وكل اقتراح مقبول يحتاج دليلاً محلياً من PostgreSQL.AI may critique one redacted table or query after the learner predicts the result. It must not generate the complete checkpoint schema; every accepted suggestion requires local PostgreSQL evidence.
نص التسجيلRecording script
السردNarration
- قدّم تحويل قواعد البيانات إلى قيود قاعدة وسمِّ الدليل المتوقع واشرح التعليل دون كشف مخطط تحقق مكتمل.Introduce turn data rules into database rules, name the expected evidence, and explain the reasoning without revealing a completed checkpoint schema.
إجراءات الشاشةScreen actions
- اعرض SQL بمسارات نسبية للمشروع وصفوف P-/S-/B- الاصطناعية ومخرج psql المحلي ومخطط العلاقات فقط؛ وأخفِ كلمات المرور وروابط الاتصال وأسماء المستخدمين ومجلدات قاعدة البيانات.Show only project-relative SQL, the synthetic P-/S-/B- rows, local psql output, and the relationship diagram; hide passwords, connection URLs, usernames, and database directories.
النصوص الظاهرةCaptions
- اكتب في الترجمة دور كل جدول واتجاه المفتاح والقاعدة المرفوضة وسؤال الاستعلام والنتيجة بالعربية أولاً ثم الإنجليزية.Caption each table role, key direction, rejected rule, query question, and result in Arabic first and English second.
نقاط التوقفPause points
- توقف قبل التنفيذ للتوقع وقبل حفظ الدليل لفحص بيانات الدخول والبيانات الحقيقية.Pause before execution for a prediction and before saving evidence for a credential and real-data scan.
قائمة التحقق من التسجيلRecording checklist
- تحقق من حزمة بداية الأسبوع الخامس كما هي وPostgreSQL المحلي والجداول الثلاثة المترابطة والصفوف الاصطناعية والحالة المستحيلة المرفوضة ومخرج الاستعلام المتحقق منه يدوياً وعدم وجود بيانات دخول أو حل مكتمل ووضوح مسار الاستدراك.Confirm the exact Week 5 starter, local PostgreSQL, three related tables, synthetic rows, rejected impossible state, hand-checked query output, no credentials, no completed solution, and visible recovery route.
اليوم 4Day 4
اليوم 4 — أسئلة الربط والتجميعDay 4 — joins and aggregate questions
التحضيرPreparation
- اجتز تحقق الأسبوع الرابع للمستودع المختبر أو استخدم مسار الدعم المرتب.Pass the Week 4 tested-repository checkpoint or use the arranged supported path.
- افتح حزمة بداية الأسبوع الخامس كما هي وتحقق من توفر PostgreSQL وpsql محلياً دون كشف كلمة مرور أو رابط اتصال.Open the exact Week 5 starter and confirm local PostgreSQL and psql are available without exposing a password or connection URL.
المواد المطلوبةRequired materials
- تسلسل الشرائح العام لهذه الجلسة (3 شرائح).Public slide sequence for this session (3 slides).
- ورقة عمل المتعلم القابلة للطباعة للمهام المنشورة وعددها 1.Printable learner worksheet for the 1 published tasks.
- نسخة دون اتصال من الجلسة وتسميات الأدلة والملفات العامة المعتمدة.An offline copy of the session, evidence labels, and approved public files.
- حالات الإدخال الاصطناعية المقدمة فقط وعددها 4؛ دون بيانات مشاركين حقيقية.Only the 4 supplied synthetic input cases; no real participant data.
الأهدافObjectives
- اكتب قائمة حجوزات مترابطة وحدد المشارك بلا حجز واحسب الحجوزات المؤكدة لكل جلسة بما فيها الصفر ثم طابق النتائج المحسوبة يدوياً.Write a joined booking list, find the unbooked participant, and count confirmed bookings for every session including zero, then match hand-calculated results.
- اشرح كل جدول ومفتاح وقيد ونتيجة استعلام باستخدام معرفات اصطناعية وأوامر محلية محجوبة فقط.Explain each table, key, constraint, and query result using only synthetic identifiers and redacted local commands.
جدول التنفيذ الدقيقExact run sheet
| الفقرةBlock | الدقائقMinutes | النمطMode | إجراء المدرّبTrainer action | إجراء المتعلّمLearner action |
|---|---|---|---|---|
| تحويل الأسئلة إلى SQL قابل للتحققTranslate questions into checkable SQL | 120 | تدريسInstruction | اعرض علاقة أو قاعدة SQL واحدة باستخدام الصفوف الاصطناعية المقدمة، وتتبعها بصرياً، وقدّم المصطلح الإنجليزي بعد الشرح العربي.Model one relationship or SQL rule using the supplied synthetic rows, trace it visually, and introduce the English term after the Arabic explanation. | توقّع الصفوف المتأثرة، واشرح المفاتيح والقيود، واحسب نتيجة الاستعلام المتوقعة قبل التنفيذ.Predict the affected rows, annotate keys and constraints, and calculate the expected query result before execution. |
| تدريب SQL موجّهGuided SQL practice | 60 | ممارسة موجّهةGuided practice | اعرض القرار الأول، واجمع التوقعات، ثم قلّل التلميحات بينما تستخدم الأزواج مجموعة البيانات الاصطناعية المنشورة فقط.Model the first decision, collect predictions, then fade prompts while pairs use only the published synthetic dataset. | حدد أعمدة وصفوف المخرج المطلوبة واختر اتجاهات الربط واحسب النتائج الثلاث المتوقعة دون SQL.Mark required output columns and rows, choose join directions, and calculate the three expected results without SQL. |
| مختبر PostgreSQL بإشرافSupervised PostgreSQL lab | 120 | مختبر خاضع للإشرافSupervised lab | راقب قرارات المخطط الفردية، واطلب سبباً لكل مفتاح وقيد، وأوقف دخول أي بيانات دخول أو رابط اتصال أو سجل حقيقي إلى الأدلة.Observe individual schema decisions, require a reason for every key and constraint, and stop any credential, connection string, or real record from entering evidence. | أكمل مطالب الاستعلامات الثلاثة ورتب المخرج بصورة حتمية وقارن كل صف وعدد بالمرجع العام وصحح أول جزء منحرف فقط.Complete the three query prompts, order output deterministically, compare every row and count with the public oracle, and correct only the first divergent clause. |
ملاحظات الشرحExplanation notes
الحفاظ على الصفوف التي يتطلبها السؤالPreserve the rows the question requires
اكتب قائمة حجوزات مترابطة وحدد المشارك بلا حجز واحسب الحجوزات المؤكدة لكل جلسة بما فيها الصفر ثم طابق النتائج المحسوبة يدوياً.Write a joined booking list, find the unbooked participant, and count confirmed bookings for every session including zero, then match hand-calculated results.
يحفظ المخطط الموثوق كل حقيقة مرة واحدة، ويجعل العلاقات صريحة، ويرفض الحالات المستحيلة، وينتج نتائج استعلام يمكن التحقق منها يدوياً.A trustworthy schema stores each fact once, makes relationships explicit, rejects impossible states, and produces query results that can be checked by hand.
أمثلة العرضDemonstration examples
4 حجوزات مترابطة؛ P-104 بلا حجز؛ أعداد المؤكد 1 و1 و04 joined bookings; P-104 unbooked; confirmed counts 1, 1, 0تسلسل الشرائح والعرضSlide and demonstration sequence
تيسير الممارسة الموجّهةGuided-practice facilitation
- حدد أعمدة وصفوف المخرج المطلوبة واختر اتجاهات الربط واحسب النتائج الثلاث المتوقعة دون SQL.Mark required output columns and rows, choose join directions, and calculate the three expected results without SQL.
تيسير المختبرLab facilitation
- اكتب الجداول أو الصفوف المتأثرة أو نتيجة الاستعلام المتوقعة قبل تنفيذ SQL.Write the expected tables, affected rows, or query result before executing SQL.
- أكمل مطالب الاستعلامات الثلاثة ورتب المخرج بصورة حتمية وقارن كل صف وعدد بالمرجع العام وصحح أول جزء منحرف فقط.Complete the three query prompts, order output deterministically, compare every row and count with the public oracle, and correct only the first divergent clause.
- شغّل باستخدام ON_ERROR_STOP وقارن المخرج بالمرجع المنشور وحدد أول مفتاح أو قيد أو جزء استعلام معطوب.Run with ON_ERROR_STOP, compare output with the published oracle, and identify the first broken key, constraint, or query clause.
- احفظ SQL المحجوب والمخرجات الاصطناعية والتعليل وملاحظة استخدام الذكاء الاصطناعي أو عدم استخدامه فقط في ملف الدليل المسمى.Save only redacted SQL, synthetic output, reasoning, and the AI-use or non-use note in the named evidence file.
الأدلة المتوقعةExpected evidence
- تعيد أسئلة SQL الثلاثة النتائج المحسوبة يدوياً: 4 صفوف وP-104 والأعداد 1/1/0 بما فيها جلسات الصفر.The three SQL questions return the hand-calculated 4-row, P-104, and 1/1/0 results including zero-count sessions.
w5d4-query-results-evidence
معايير التحقق المنشورةPublished checkpoint criteria
مهمة التحقق المنشورةPublished checkpoint prompt
صمّم ثلاثة جداول مترابطة بمفاتيح أساسية وخارجية وقيود واستعلامات SQL نموذجية.Design three related tables with primary keys, foreign keys, constraints, and sample SQL queries.
- للجداول الثلاثة مفاتيح أساسية ثابتة وعلاقات مفاتيح خارجية صالحة.All three tables have stable primary keys and valid foreign-key relationships.
- ترفض القيود صفاً اصطناعياً مستحيلاً واحداً على الأقل.Constraints reject at least one impossible synthetic row.
- تجيب استعلامات الربط والتجميع النموذجية عن أسئلتها المحددة بصورة صحيحة.Sample join and aggregate queries answer their stated questions correctly.
الأخطاء الشائعةCommon errors
- تُكرر حقائق المشارك أو الجلسة في الحجوزات فتنتج تحديثات غير متسقة.Participant or session facts are duplicated in bookings, creating inconsistent updates.
- يُذكر مفتاح أو قيد دون فرضه فيُقبل صف مستحيل.A key or constraint is named but not enforced, so an impossible row is accepted.
- يحذف الربط الداخلي بصمت الجلسات ذات الصفر أو المشاركين بلا حجز.An inner join silently removes zero-booking sessions or unbooked participants.
تدخلات المدرّبTrainer interventions
- ارجع إلى مخطط العلاقات ذي الصناديق الثلاثة وتتبع معرف P- وS- وB- واحداً قبل تعديل SQL.Return to the three-box relationship diagram and trace one P-, S-, and B- identifier before editing SQL.
- اطلب من المتعلم حساب الصفوف المتوقعة يدوياً ثم إصلاح أول جزء منحرف فقط.Ask the learner to calculate the expected rows by hand, then repair only the first divergent clause.
الاستدراكRecovery
خلال أسبوع واحد، أعد بناء مخطط الجداول الثلاثة من الصفوف المقدمة وصحح أول مفتاح أو قيد أو استعلام معطوب وأعد تشغيل الدليل الاصطناعي نفسه ثم أعد تقديم دليل الاستعلامات المتحقق منه يدوياً.Within one week, rebuild the three-table diagram from the supplied rows, correct the first broken key, constraint, or query, rerun the same synthetic evidence, and resubmit the hand-checked query evidence.
البديل عند الانقطاعInterruption fallback
استخدم العرض المسجّل والحزمة العربية القابلة للتنزيل والنسخة المحلية من البداية؛ واعتمد دليلاً مكافئاً عن بُعد أو دون اتصال بعد أن يسجل المنسق الانقطاع.Use the recorded demonstration, downloadable Arabic-first pack and local starter copy; approve equivalent remote or offline evidence after the coordinator records the interruption.
الخصوصية والذكاء الاصطناعيPrivacy and AI reminders
الخصوصيةPrivacy
استخدم صفوف الورشة الخيالية المقدمة فقط. لا تستورد قوائم تسجيل أو أسماء أو بيانات اتصال أو بيانات دخول أو روابط اتصال أو مجلدات بيانات PostgreSQL.Use only the supplied fictional workshop rows. Never import registration sheets, names, contact details, credentials, connection strings, or PostgreSQL data directories.
الذكاء الاصطناعي المسؤولResponsible AI
يمكن للذكاء الاصطناعي نقد جدول أو استعلام محجوب واحد بعد أن يتوقع المتعلم النتيجة. ولا يجوز أن ينشئ مخطط التحقق الكامل؛ وكل اقتراح مقبول يحتاج دليلاً محلياً من PostgreSQL.AI may critique one redacted table or query after the learner predicts the result. It must not generate the complete checkpoint schema; every accepted suggestion requires local PostgreSQL evidence.
نص التسجيلRecording script
السردNarration
- قدّم تحويل الأسئلة إلى SQL قابل للتحقق وسمِّ الدليل المتوقع واشرح التعليل دون كشف مخطط تحقق مكتمل.Introduce translate questions into checkable sql, name the expected evidence, and explain the reasoning without revealing a completed checkpoint schema.
إجراءات الشاشةScreen actions
- اعرض SQL بمسارات نسبية للمشروع وصفوف P-/S-/B- الاصطناعية ومخرج psql المحلي ومخطط العلاقات فقط؛ وأخفِ كلمات المرور وروابط الاتصال وأسماء المستخدمين ومجلدات قاعدة البيانات.Show only project-relative SQL, the synthetic P-/S-/B- rows, local psql output, and the relationship diagram; hide passwords, connection URLs, usernames, and database directories.
النصوص الظاهرةCaptions
- اكتب في الترجمة دور كل جدول واتجاه المفتاح والقاعدة المرفوضة وسؤال الاستعلام والنتيجة بالعربية أولاً ثم الإنجليزية.Caption each table role, key direction, rejected rule, query question, and result in Arabic first and English second.
نقاط التوقفPause points
- توقف قبل التنفيذ للتوقع وقبل حفظ الدليل لفحص بيانات الدخول والبيانات الحقيقية.Pause before execution for a prediction and before saving evidence for a credential and real-data scan.
قائمة التحقق من التسجيلRecording checklist
- تحقق من حزمة بداية الأسبوع الخامس كما هي وPostgreSQL المحلي والجداول الثلاثة المترابطة والصفوف الاصطناعية والحالة المستحيلة المرفوضة ومخرج الاستعلام المتحقق منه يدوياً وعدم وجود بيانات دخول أو حل مكتمل ووضوح مسار الاستدراك.Confirm the exact Week 5 starter, local PostgreSQL, three related tables, synthetic rows, rejected impossible state, hand-checked query output, no credentials, no completed solution, and visible recovery route.
اليوم 5Day 5
اليوم 5 — التحقق الفردي للمخطط المُطبّعDay 5 — individual normalised-schema checkpoint
التحضيرPreparation
- اجتز تحقق الأسبوع الرابع للمستودع المختبر أو استخدم مسار الدعم المرتب.Pass the Week 4 tested-repository checkpoint or use the arranged supported path.
- افتح حزمة بداية الأسبوع الخامس كما هي وتحقق من توفر PostgreSQL وpsql محلياً دون كشف كلمة مرور أو رابط اتصال.Open the exact Week 5 starter and confirm local PostgreSQL and psql are available without exposing a password or connection URL.
المواد المطلوبةRequired materials
- تسلسل الشرائح العام لهذه الجلسة (3 شرائح).Public slide sequence for this session (3 slides).
- ورقة عمل المتعلم القابلة للطباعة للمهام المنشورة وعددها 1.Printable learner worksheet for the 1 published tasks.
- نسخة دون اتصال من الجلسة وتسميات الأدلة والملفات العامة المعتمدة.An offline copy of the session, evidence labels, and approved public files.
- حالات الإدخال الاصطناعية المقدمة فقط وعددها 4؛ دون بيانات مشاركين حقيقية.Only the 4 supplied synthetic input cases; no real participant data.
الأهدافObjectives
- ابنِ الجداول الثلاثة المترابطة بصورة فردية وافرض كل القواعد المنشورة وحمّل الصفوف الاصطناعية وارفض صفاً مستحيلاً وشغّل الاستعلامات الثلاثة واشرح التصميم.Individually build the three related tables, enforce all published rules, load synthetic rows, reject one impossible row, run the three queries, and explain the design.
- اشرح كل جدول ومفتاح وقيد ونتيجة استعلام باستخدام معرفات اصطناعية وأوامر محلية محجوبة فقط.Explain each table, key, constraint, and query result using only synthetic identifiers and redacted local commands.
جدول التنفيذ الدقيقExact run sheet
| الفقرةBlock | الدقائقMinutes | النمطMode | إجراء المدرّبTrainer action | إجراء المتعلّمLearner action |
|---|---|---|---|---|
| التحقق الفردي للمخطط العلائقيIndividual relational-schema checkpoint | 300 | مختبر خاضع للإشرافSupervised lab | وزّع حزمة البداية دون تغيير، وراقب عمل المخطط والاستعلامات دون تزويد المتعلم بـSQL، وتحقق من صف مرفوض واحد ونتائج الاستعلامات الدقيقة، ورتّب استدراكاً مركزاً عند الحاجة.Issue the unchanged starter, observe schema and query work without supplying SQL, verify one rejected row and exact query results, and arrange focused recovery when required. | من حزمة البداية دون تغيير، أكمل schema.sql وqueries.sql وحمّل seed.sql وأثبت رفض قيد وشغّل الاستعلامات الثلاثة واشرح مسار مفتاح واحد ومسار عدد صفر واحد مباشرة.From the unchanged starter, complete schema.sql and queries.sql, load seed.sql, prove a constraint rejection, run all three queries, and explain one key path and one zero-count path live. |
ملاحظات الشرحExplanation notes
يثبت دليل المخطط انتقال التعلم بصورة مستقلةSchema evidence proves independent transfer
ابنِ الجداول الثلاثة المترابطة بصورة فردية وافرض كل القواعد المنشورة وحمّل الصفوف الاصطناعية وارفض صفاً مستحيلاً وشغّل الاستعلامات الثلاثة واشرح التصميم.Individually build the three related tables, enforce all published rules, load synthetic rows, reject one impossible row, run the three queries, and explain the design.
يحفظ المخطط الموثوق كل حقيقة مرة واحدة، ويجعل العلاقات صريحة، ويرفض الحالات المستحيلة، وينتج نتائج استعلام يمكن التحقق منها يدوياً.A trustworthy schema stores each fact once, makes relationships explicit, rejects impossible states, and produces query results that can be checked by hand.
أمثلة العرضDemonstration examples
3 مفاتيح أساسية ثابتة + مفتاحان خارجيان صالحان + قواعد مفروضة + دليل استعلامات 4/P-104/1-1-0 الدقيق3 stable primary keys + 2 valid foreign keys + enforced rules + exact 4/P-104/1-1-0 query evidenceتسلسل الشرائح والعرضSlide and demonstration sequence
تيسير الممارسة الموجّهةGuided-practice facilitation
- اقرأ المعيار وأعد رسم نموذج الجداول الثلاثة وتوقع الصف غير الصالح ومخرجات الاستعلام وحدد البيانات المحظورة قبل البناء المحدد بالوقت.Read the rubric, redraw the three-table model, predict the invalid row and query outputs, and identify prohibited data before the timed build.
تيسير المختبرLab facilitation
- اكتب الجداول أو الصفوف المتأثرة أو نتيجة الاستعلام المتوقعة قبل تنفيذ SQL.Write the expected tables, affected rows, or query result before executing SQL.
- من حزمة البداية دون تغيير، أكمل schema.sql وqueries.sql وحمّل seed.sql وأثبت رفض قيد وشغّل الاستعلامات الثلاثة واشرح مسار مفتاح واحد ومسار عدد صفر واحد مباشرة.From the unchanged starter, complete schema.sql and queries.sql, load seed.sql, prove a constraint rejection, run all three queries, and explain one key path and one zero-count path live.
- شغّل باستخدام ON_ERROR_STOP وقارن المخرج بالمرجع المنشور وحدد أول مفتاح أو قيد أو جزء استعلام معطوب.Run with ON_ERROR_STOP, compare output with the published oracle, and identify the first broken key, constraint, or query clause.
- احفظ SQL المحجوب والمخرجات الاصطناعية والتعليل وملاحظة استخدام الذكاء الاصطناعي أو عدم استخدامه فقط في ملف الدليل المسمى.Save only redacted SQL, synthetic output, reasoning, and the AI-use or non-use note in the named evidence file.
الأدلة المتوقعةExpected evidence
- يستوفي المخطط الفردي القابل للتشغيل والصف المستحيل المرفوض والاستعلامات الدقيقة وفحص الخصوصية والشرح المباشر تحقق الأسبوع الخامس.The individual runnable schema, rejected impossible row, exact queries, privacy scan, and live explanation satisfy the Week 5 checkpoint.
w5d5-checkpoint-evidence
معايير التحقق المنشورةPublished checkpoint criteria
مهمة التحقق المنشورةPublished checkpoint prompt
صمّم ثلاثة جداول مترابطة بمفاتيح أساسية وخارجية وقيود واستعلامات SQL نموذجية.Design three related tables with primary keys, foreign keys, constraints, and sample SQL queries.
- للجداول الثلاثة مفاتيح أساسية ثابتة وعلاقات مفاتيح خارجية صالحة.All three tables have stable primary keys and valid foreign-key relationships.
- ترفض القيود صفاً اصطناعياً مستحيلاً واحداً على الأقل.Constraints reject at least one impossible synthetic row.
- تجيب استعلامات الربط والتجميع النموذجية عن أسئلتها المحددة بصورة صحيحة.Sample join and aggregate queries answer their stated questions correctly.
الأخطاء الشائعةCommon errors
- تُكرر حقائق المشارك أو الجلسة في الحجوزات فتنتج تحديثات غير متسقة.Participant or session facts are duplicated in bookings, creating inconsistent updates.
- يُذكر مفتاح أو قيد دون فرضه فيُقبل صف مستحيل.A key or constraint is named but not enforced, so an impossible row is accepted.
- يحذف الربط الداخلي بصمت الجلسات ذات الصفر أو المشاركين بلا حجز.An inner join silently removes zero-booking sessions or unbooked participants.
تدخلات المدرّبTrainer interventions
- ارجع إلى مخطط العلاقات ذي الصناديق الثلاثة وتتبع معرف P- وS- وB- واحداً قبل تعديل SQL.Return to the three-box relationship diagram and trace one P-, S-, and B- identifier before editing SQL.
- اطلب من المتعلم حساب الصفوف المتوقعة يدوياً ثم إصلاح أول جزء منحرف فقط.Ask the learner to calculate the expected rows by hand, then repair only the first divergent clause.
الاستدراكRecovery
خلال أسبوع واحد، أعد بناء مخطط الجداول الثلاثة من الصفوف المقدمة وصحح أول مفتاح أو قيد أو استعلام معطوب وأعد تشغيل الدليل الاصطناعي نفسه ثم أعد تقديم دليل تحقق الأسبوع الخامس الفردي.Within one week, rebuild the three-table diagram from the supplied rows, correct the first broken key, constraint, or query, rerun the same synthetic evidence, and resubmit the individual week 5 checkpoint evidence.
البديل عند الانقطاعInterruption fallback
استخدم العرض المسجّل والحزمة العربية القابلة للتنزيل والنسخة المحلية من البداية؛ واعتمد دليلاً مكافئاً عن بُعد أو دون اتصال بعد أن يسجل المنسق الانقطاع.Use the recorded demonstration, downloadable Arabic-first pack and local starter copy; approve equivalent remote or offline evidence after the coordinator records the interruption.
الخصوصية والذكاء الاصطناعيPrivacy and AI reminders
الخصوصيةPrivacy
استخدم صفوف الورشة الخيالية المقدمة فقط. لا تستورد قوائم تسجيل أو أسماء أو بيانات اتصال أو بيانات دخول أو روابط اتصال أو مجلدات بيانات PostgreSQL.Use only the supplied fictional workshop rows. Never import registration sheets, names, contact details, credentials, connection strings, or PostgreSQL data directories.
الذكاء الاصطناعي المسؤولResponsible AI
يمكن للذكاء الاصطناعي نقد جدول أو استعلام محجوب واحد بعد أن يتوقع المتعلم النتيجة. ولا يجوز أن ينشئ مخطط التحقق الكامل؛ وكل اقتراح مقبول يحتاج دليلاً محلياً من PostgreSQL.AI may critique one redacted table or query after the learner predicts the result. It must not generate the complete checkpoint schema; every accepted suggestion requires local PostgreSQL evidence.
نص التسجيلRecording script
السردNarration
- قدّم التصميم والفرض والاستعلام والشرح بصورة فردية وسمِّ الدليل المتوقع واشرح التعليل دون كشف مخطط تحقق مكتمل.Introduce design, enforce, query, and explain independently, name the expected evidence, and explain the reasoning without revealing a completed checkpoint schema.
إجراءات الشاشةScreen actions
- اعرض SQL بمسارات نسبية للمشروع وصفوف P-/S-/B- الاصطناعية ومخرج psql المحلي ومخطط العلاقات فقط؛ وأخفِ كلمات المرور وروابط الاتصال وأسماء المستخدمين ومجلدات قاعدة البيانات.Show only project-relative SQL, the synthetic P-/S-/B- rows, local psql output, and the relationship diagram; hide passwords, connection URLs, usernames, and database directories.
النصوص الظاهرةCaptions
- اكتب في الترجمة دور كل جدول واتجاه المفتاح والقاعدة المرفوضة وسؤال الاستعلام والنتيجة بالعربية أولاً ثم الإنجليزية.Caption each table role, key direction, rejected rule, query question, and result in Arabic first and English second.
نقاط التوقفPause points
- توقف قبل التنفيذ للتوقع وقبل حفظ الدليل لفحص بيانات الدخول والبيانات الحقيقية.Pause before execution for a prediction and before saving evidence for a credential and real-data scan.
قائمة التحقق من التسجيلRecording checklist
- تحقق من حزمة بداية الأسبوع الخامس كما هي وPostgreSQL المحلي والجداول الثلاثة المترابطة والصفوف الاصطناعية والحالة المستحيلة المرفوضة ومخرج الاستعلام المتحقق منه يدوياً وعدم وجود بيانات دخول أو حل مكتمل ووضوح مسار الاستدراك.Confirm the exact Week 5 starter, local PostgreSQL, three related tables, synthetic rows, rejected impossible state, hand-checked query output, no credentials, no completed solution, and visible recovery route.