SSC IMD SA 2017 – Question 179

Question:

Which of the following attributes can be taken as a primary key?

निम्न में से कौन सी एक एट्रीब्यूट प्रााइमरी की के रूप में ली जा सकती है?

Options:

  • Name
  • Street
  • ID
  • Department
  • नाम
  • सड़क
  • Id
  • डिपार्टमेंट

Correct Answer: c)

Explanation:

Detailed Explanation:

The correct answer is c) Id.

In relational database design, a Primary Key must satisfy two fundamental constraints:

  1. Uniqueness Constraint: The attribute value must uniquely identify every single tuple (row) in the relation without duplicates.
  2. Entity Integrity Constraint: The attribute can never accept NULL values.

Evaluation of the Options:

  • Name (नाम): Names are not guaranteed to be unique. In any organization, university, or company, multiple individuals can have the exact same name (e.g., “John Smith”).
  • Street (सड़क): Multiple people, homes, or businesses can share the same street address.
  • Department (डिपार्टमेंट): Multiple instructors or employees work within the same department (e.g., “Physics”).
  • Id (आईडी): An Identification Number is uniquely generated and assigned to precisely one entity. It is immutable, non-null, and unique across all records, making it the only suitable candidate for a Primary Key.

विस्तृत व्याख्या:

सही उत्तर c) Id है।

रिलेशनल डेटाबेस में किसी तालिका के प्राथमिक कुंजी (Primary Key) बनने के लिए दो अनिवार्य शर्तें होती हैं:

  1. अद्वितीयता (Uniqueness): प्रत्येक रिकॉर्ड (पंक्ति) के लिए इस विशेषता का मान विशिष्ट होना चाहिए, अर्थात् कोई दोहराव नहीं होना चाहिए।
  2. अखंडता नियम (Not NULL): प्राथमिक कुंजी का मान कभी भी रिक्त (NULL) नहीं हो सकता।

विकल्पों का विश्लेषण:

  • नाम (Name): एक ही नाम के कई व्यक्ति हो सकते हैं, अतः यह अद्वितीय नहीं है।
  • सड़क (Street): एक ही सड़क पर कई लोग रह सकते हैं।
  • डिपार्टमेंट (Department): एक ही विभाग में कई शिक्षक/कर्मचारी कार्य करते हैं।
  • Id (आईडी): प्रत्येक व्यक्ति या रिकॉर्ड को एक विशिष्ट पहचान संख्या (ID) आवंटित की जाती है जो कभी नहीं दोहराई जाती। अतः Id को प्राथमिक कुंजी के रूप में चुना जा सकता है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top