Question
Option 4 : The composite (StudentId, CourseId) / संयुक्त (StudentId, CourseId)
Detailed Solution
सही उत्तर The composite (StudentId, CourseId) / संयुक्त (StudentId, CourseId) है।
Question:
In table Enroll(StudentId, CourseId, Semester, Grade), a student enrols in a given course only once. Which is the BEST primary key? / तालिका Enroll(StudentId, CourseId, Semester, Grade) में छात्र किसी पाठ्यक्रम में केवल एक बार नामांकित होता है। सर्वोत्तम प्राथमिक कुंजी कौन-सी है?
Correct Answer: The composite (StudentId, CourseId) / संयुक्त (StudentId, CourseId)
The pair uniquely identifies each enrolment and reflects the real-world rule; Grade and Semester repeat across rows, and StudentId alone cannot distinguish two courses of one student. / युग्म प्रत्येक नामांकन की अद्वितीय पहचान करता है और वास्तविक नियम दर्शाता है; Grade और Semester पंक्तियों में दोहराते हैं, और अकेला StudentId एक छात्र के दो पाठ्यक्रम नहीं भेद सकता।