SSC IMD SA 2017 – Question 180

Question:

An attribute in a relation is a foreign key if the ______ key of another relation is used as an attribute in that relation.

किसी रिलेशन में एक एट्रीब्यूट एक फॉरेन की है यदि एक रिलेशन की निम्न का उपयोग एक एट्रीब्यूट के रूप में उस रिलेशन में कैसे किया जाता है?

Options:

  • Candidate
  • Primary
  • Super
  • Sub
  • उम्मीदवार
  • प्रााइमरी
  • सुपर
  • सब

Correct Answer: b)

Explanation:

Detailed Explanation:

The correct answer is b) Primary (प्राथमिक).

In relational databases, a Foreign Key (FK) enforces the rule of Referential Integrity:

  • A set of attributes in a relation $R_1$ is called a foreign key referencing relation $R_2$ if those attributes correspond to the Primary Key (or a unique candidate key) of relation $R_2$.
  • The foreign key establishes an explicit direct relationship between the two tables: values present in the referencing table’s foreign key column must either match an existing primary key value in the referenced table or be NULL.
  • This constraint prevents “orphaned records” and ensures that relational connections remain consistent across transactions.

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

सही उत्तर b) प्राथमिक (Primary) है।

रिलेशनल डेटाबेस प्रबंधन प्रणाली (RDBMS) में फॉरेन की (Foreign Key) और संदर्भित अखंडता (Referential Integrity):

  • किसी रिलेशन (टेबल) में एक एट्रीब्यूट को तब ‘फॉरेन की’ कहा जाता है, जब वह किसी अन्य रिलेशन (टेबल) की प्राथमिक कुंजी (Primary Key) या यूनीक की को संदर्भित करता हो।
  • यह दो तालिकाओं के बीच संबंध स्थापित करता है। फॉरेन की कॉलम में मौजूद कोई भी मान संदर्भित टेबल की प्राइमरी की में अनिवार्य रूप से मौजूद होना चाहिए या फिर वह NULL होना चाहिए।

अतः फॉरेन की किसी अन्य रिलेशन की प्राथमिक (Primary) कुंजी को संदर्भित करती है।

Leave a Comment

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

Scroll to Top