Live rows, real Foreign Key values
Relationship Explorer
A table diagram tells you a relationship can exist. This page proves it by following one real row's actual id values from table to table.
ایک ٹیبل ڈایاگرام صرف یہ بتاتا ہے کہ دو ٹیبلز کے درمیان تعلق قائم ہو سکتا ہے۔ جبکہ یہ صفحہ ایک حقیقی ریکارڈ کی آئی ڈی (ID) ویلیوز کو ایک ٹیبل سے دوسرے ٹیبل تک ٹریس کر کے اس تعلق کو عملاً ثابت کرتا ہے۔
Student → Enrollment → Class
Parent → Student (via junction)
Teacher → Subject → Class
Student → Invoice → Payments
Exam → Student → Subject → Result
Student → Enrollment → Class
students
Ali Khan
student_id = 1
→
student_enrollments
student_id = 1
class_id = 1
roll no. 1
→
classes
Grade 5 - A
class_id = 1
Notice the same number, 1,
appears in both students.student_id and student_enrollments.student_id.
That repeated number is the relationship — there is no other mechanism linking the rows.
Explain this page
- What am I looking at?
- One real example row from each side of a relationship, with the actual id values that
connect them printed in
monotext — not hidden behind a friendly name. The id is the entire mechanism. - Why does this matter?
- Understanding "student_id = 1 in both tables means the same student" is the single biggest unlock for reading and writing JOINs confidently.
- یہاں کیا نظر آ رہا ہے؟
- تعلق کے ہر رخ سے ایک حقیقی ریکارڈ لیا گیا ہے، اور آئی ڈی (ID) کی قدریں جو انہیں
آپس میں جوڑتی ہیں
monoفونٹ میں دکھائی گئی ہیں — کسی دوستانہ نام کے پیچھے چھپائی نہیں گئیں۔ آئی ڈی (ID) ہی پورا ربط کا ذریعہ ہے۔ - یہ کیوں اہم ہے؟
- یہ سمجھنا کہ "دونوں ٹیبلز میں
student_id = 1ایک ہی طالب علم کو ظاہر کرتا ہے" — جوائنز (JOINs) لکھنے اور سمجھنے کی سب سے بڑی کلید ہے۔