SSC IMD SA 2017 – Question 184

Question:

Which statement is true about a clustered index?

क्लस्टर इंडेक्स के बारे में कौन सा कथन सत्य है?

Options:

  • Clustered index is not associated with the table
  • A clustered index is created by default on a unique key column
  • A clustered index is not created on a unique key column
  • None of these
  • क्लस्टर इंडेक्स टेबल के साथ संबद्ध नहींं है
  • क्लस्टर किए गए इंडेक्स अद्वितीय की कॉलम पर डिफ़ॉॉल्ट रूप से बनाया गया है
  • क्लस्टर इंडेक्स अद्वितीय की कॉलम पर नहींं बनाया जाता है
  • इनमे से कोई नहींं

Correct Answer: b)

Explanation:

Detailed Explanation:

The correct answer is b) A clustered index is created by default on the unique key/primary key column (क्लस्टर किए गए इंडेक्स अद्वितीय की कॉलम पर डिफ़ॉल्ट रूप से बनाया गया है).

In Relational Database Management Systems (such as Microsoft SQL Server and MySQL InnoDB):

  • Physical Ordering: A Clustered Index sorts and physically stores the actual data rows of the table in the order of the indexed column(s). Because the physical data rows can only be sorted in one way on disk, there can only be one clustered index per table.
  • Default Creation: When a table is defined with a PRIMARY KEY constraint, the RDBMS automatically creates a unique clustered index on that primary key column by default (unless a clustered index has already been designated or NONCLUSTERED is explicitly specified).
  • Leaf Nodes: The leaf nodes of a clustered index contain the actual data pages of the table, eliminating the need for secondary lookups.

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

सही उत्तर b) क्लस्टर किए गए इंडेक्स अद्वितीय की कॉलम पर डिफ़ॉल्ट रूप से बनाया गया है है।

डेटाबेस प्रबंधन प्रणाली (RDBMS) में इंडेक्सिंग की अवधारणा:

  • क्लस्टर्ड इंडेक्स (Clustered Index): यह तालिका के डेटा को इंडेक्स की कुंजी के आधार पर डिस्क पर भौतिक रूप से (Physically) व्यवस्थित करता है। चूंकि भौतिक डेटा केवल एक ही क्रम में व्यवस्थित हो सकता है, इसलिए प्रति टेबल केवल एक ही क्लस्टर्ड इंडेक्स हो सकता है।
  • डिफ़ॉल्ट निर्माण: जब किसी टेबल में PRIMARY KEY (प्राथमिक कुंजी) बनाई जाती है, तो एसक्यूएल इंजन डिफ़ॉल्ट रूप से उस अद्वितीय कुंजी कॉलम पर स्वचालित रूप से एक यूनिक क्लस्टर्ड इंडेक्स निर्मित कर देता है।
  • क्लस्टर्ड इंडेक्स के लीफ नोड्स में वास्तविक डेटा पंक्तियाँ ही संग्रहीत होती हैं।

Leave a Comment

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

Scroll to Top