Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 4 : The composite (StudentId, CourseId) / संयुक्त (StudentId, CourseId)

Advertisement

Detailed Solution

सही उत्तर The composite (StudentId, CourseId) / संयुक्त (StudentId, CourseId) है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

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) में छात्र किसी पाठ्यक्रम में केवल एक बार नामांकित होता है। सर्वोत्तम प्राथमिक कुंजी कौन-सी है?

1.
Grade alone / अकेला Grade
2.
Semester alone / अकेला Semester
3.
StudentId alone / अकेला StudentId
4.
The composite (StudentId, CourseId) / संयुक्त (StudentId, CourseId)

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 एक छात्र के दो पाठ्यक्रम नहीं भेद सकता।

Downloaded from PrepSnap (prepsnap.in)