PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Relational Model Concepts: Relations, Tuples, Attributes, Domains (रिलेशनल मॉडल: रिलेशन (टेबल), टपल (रो), एट्रिब्यूट (कॉलम) और डोमेन) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: Introduced by E.F. Codd in 1970, the Relational Model organizes data mathematically into 2D tables called Relations composed of unordered rows (Tuples) and named columns (Attributes) drawing atomic values from defined Domains. Separating logical Relation Schema (intension) from Relation Instance (extension) guarantees data independence.
अध्याय सार: ई.एफ. कॉड (E.F. Codd) द्वारा 1970 में प्रस्तुत रिलेशनल मॉडल डेटा को गणितीय समुच्चय सिद्धांत के आधार पर द्वि-आयामी टेबल्स (Relations) में व्यवस्थित करता है। इसमें प्रत्येक पंक्ति को टपल (Tuple), प्रत्येक कॉलम को एट्रिब्यूट (Attribute) और प्रत्येक एट्रिब्यूट के वैध मानों के समुच्चय को डोमेन (Domain) कहा जाता है।
Relational Model Concepts: Relations, Tuples, Attributes, Domains: Detailed Notes & Architecture (रिलेशनल मॉडल: रिलेशन (टेबल), टपल (रो), एट्रिब्यूट (कॉलम) और डोमेन)
1. Relations, Schema (Intension) vs Instance (Extension) (रिलेशन, स्कीमा (Intension) बनाम इंस्टेंस (Extension))
[EN] Formally, a Relation is a subset of the Cartesian product of attribute domains: R ⊆ D1 × D2 × ... × Dn, visualized as a flat two-dimensional table. A Relation Schema R(A1, A2, ..., An) is called the Intension—it defines the relation's name and column structure and stays relatively static. A Relation Instance r(R) is called the Extension—it represents the current snapshot of rows stored at a specific moment and changes dynamically on INSERT, UPDATE, and DELETE.
[HI] गणितीय रूप से एक रिलेशन अपने डोमेन्स के कार्टेशियन गुणनफल का उपसमुच्चय होता है जिसे 2D टेबल के रूप में देखा जाता है। रिलेशन स्कीमा R(A1, A2, ..., An) को Intension कहते हैं जो टेबल की स्थायी संरचना बताता है। वहीं किसी समय विशेष पर टेबल में मौजूद पंक्तियों के वास्तविक डेटा सेट को Relation Instance या Extension कहते हैं, जो प्रत्येक DML कमांड के साथ बदलता रहता है।
2. Tuples (Rows) and Set-Theoretic Properties (टपल्स (Tuples) और समुच्चय सिद्धांत के नियम)
[EN] Each horizontal row in a relation is called a Tuple, representing a single fact or entity occurrence (e.g., one student record). Because a mathematical relation is strictly a SET of tuples rather than a list, two critical properties hold: (1) Duplicate tuples are theoretically forbidden (every row must be uniquely identifiable), and (2) The physical ordering of tuples inside a relation is completely irrelevant (no 'first' or 'last' row semantically).
[HI] रिलेशन की प्रत्येक क्षैतिज पंक्ति को टपल (Tuple) या रिकॉर्ड कहा जाता है जो किसी एक एंटिटी के पूर्ण विवरण को दर्शाती है। चूंकि रिलेशन गणितीय रूप से एक समुच्चय (Set) होता है, अतः इसके दो अनिवार्य गुण हैं: पहला, इसमें कोई भी दो टपल पूर्णतः एक जैसे (डुप्लीकेट) नहीं हो सकते; और दूसरा, टपल्स का क्रम (Ordering) महत्वहीन होता है।
3. Attributes (Columns) and Atomicity (1NF) (एट्रिब्यूट्स (कॉलम) और परमाणु मान (Atomicity))
[EN] An Attribute is a named column representing a specific property or role played by a domain inside a relation (for example, Roll_No or CGPA). Unlike tuple order, attribute names must be distinct within the same relation, while the left-to-right physical order of columns is theoretically immaterial when attributes are accessed by name. Crucially, the pure relational model enforces Atomicity (First Normal Form): every cell at a tuple-attribute intersection must hold a single indivisible value (or NULL), never nested lists or sub-tables.
[HI] एट्रिब्यूट टेबल के एक नामित कॉलम को दर्शाता है (जैसे Emp_Name, Salary)। एक ही टेबल में दो कॉलमों का नाम समान नहीं हो सकता, हालांकि नाम से एक्सेस होने पर कॉलम का बाएं-से-दाएं क्रम महत्वहीन माना जाता है। रिलेशनल मॉडल का सबसे बड़ा नियम परमाणुता (Atomicity / 1NF) है, अर्थात प्रत्येक सेल में केवल एक अविभाज्य (अकेला) मान या NULL ही हो सकता है, कोई सूची या उप-टेबल नहीं।
4. Domains, Data Types and NULL Representation (डोमेन (Domain), डेटा प्रकार एवं NULL की भूमिका)
[EN] A Domain D is the pool of valid, atomic values from which an attribute draws its entries (e.g., Domain 'Age_Dom' = integers from 0 to 150, or 'Grade' = {'A', 'B', 'C', 'D', 'F'}). Different attributes in the same or different relations can share the same underlying domain (e.g., Emp_Phone and Emergency_Phone both draw from 10-digit Phone_Domain). NULL is a special placeholder (not zero or empty string) indicating an attribute value is unknown, missing, or not applicable.
[HI] डोमेन उन सभी वैध और परमाणु मानों का संग्रह है जिन्हें कोई एट्रिब्यूट ग्रहण कर सकता है (जैसे Marks का डोमेन 0 से 100 तक के पूर्णांक)। एक ही डोमेन से अलग-अलग कॉलम (जैसे Home_Phone और Office_Phone) मान ले सकते हैं। NULL कोई मान या शून्य (0) नहीं है, बल्कि एक विशेष संकेतक है जो बताता है कि उस स्थान पर मान अज्ञात (Unknown) या अनुपयुक्त (Not Applicable) है।
Syntax, Formula & Technical Example (Relational Model Concepts: Relations, Tuples, Attributes, Domains)
-- Mathematical Relation Schema (Intension): STUDENT(Roll_No, Name, Branch, CGPA)
-- Cartesian Product Subset: r(STUDENT) ⊆ Dom(Roll_No) × Dom(Name) × Dom(Branch) × Dom(CGPA)
CREATE DOMAIN BranchCode AS VARCHAR(5) CHECK (VALUE IN ('CSE', 'IT', 'ECE', 'ME'));
CREATE TABLE STUDENT (
Roll_No INT PRIMARY KEY, -- Atomic Domain: Positive Integer
Name VARCHAR(50) NOT NULL, -- Atomic Domain: String
Branch BranchCode,
CGPA DECIMAL(3,2) CHECK (CGPA BETWEEN 0.00 AND 10.00)
);
Relational Model Concepts: Relations, Tuples, Attributes, Domains Quick Reference & Comparison Table
| Relational Model Term | Formal / Informal Equivalent | Core Theoretical Property |
|---|---|---|
| Relation | 2D Table (Subset of Cartesian Product) | Contains unordered, distinct tuples with atomic cells |
| Tuple | Row / Record in a table | Ordering is irrelevant; duplicates prohibited in pure RM |
| Attribute | Column / Field name | Must have unique name in schema; values are indivisible |
| Domain | Set of permissible atomic values | Defines type, format, and valid range for an attribute |
Relational Model Concepts: Relations, Tuples, Attributes, Domains Top 20 Bilingual MCQs with Answers
Q1. Who proposed the Relational Data Model in the landmark 1970 paper 'A Relational Model of Data for Large Shared Data Banks'?
(1970 में रिलेशनल डेटा मॉडल का प्रतिपादन किसने किया था?)
(A) Charles Bachman
(B) Peter Chen
(C) E.F. Codd
(D) Bjarne Stroustrup
Correct Answer: (C)
[EN] Dr. Edgar F. Codd formulated the relational model at IBM based on mathematical set theory and predicate logic.
[HI] आईबीएम के वैज्ञानिक डॉ. एडगर एफ. कॉड ने 1970 में रिलेशनल डेटा मॉडल का आविष्कार किया था।
Q2. In relational database terminology, what is the formal term for a single horizontal row of a table?
(रिलेशनल डेटाबेस शब्दावली में टेबल की एक क्षैतिज पंक्ति (Row) का आधिकारिक नाम क्या है?)
(A) Attribute
(B) Tuple
(C) Domain
(D) Schema
Correct Answer: (B)
[EN] A row represents a single n-tuple of values corresponding to the relation's n attributes.
[HI] टेबल की एक पंक्ति या रिकॉर्ड को रिलेशनल मॉडल में टपल (Tuple) कहा जाता है।
Q3. What does the 'Domain' of an attribute define in the Relational Model?
(रिलेशनल मॉडल में किसी एट्रिब्यूट का 'डोमेन (Domain)' क्या परिभाषित करता है?)
(A) The total number of rows in the relation
(B) The foreign key link to another database
(C) The set of atomic, permissible values that the attribute is allowed to take
(D) The physical hard-disk sector address
Correct Answer: (C)
[EN] A domain specifies the legal pool of atomic values (data type, size, and logical constraints) for an attribute.
[HI] डोमेन उन सभी वैध व अविभाज्य मानों का समुच्चय तय करता है जो उस कॉलम में भरे जा सकते हैं।
Q4. Mathematically, a Relation instance r(R(A1, A2, ..., An)) is defined as a subset of what?
(गणितीय दृष्टि से कोई रिलेशन इंस्टेंस r(R) किसका एक उपसमुच्चय (Subset) होता है?)
(A) The intersection of all primary keys
(B) The union of all table names
(C) The set difference of attributes
(D) The Cartesian product of the domains: D1 × D2 × ... × Dn
Correct Answer: (D)
[EN] Every valid tuple belongs to D1 × D2 × ... × Dn, so the set of tuples r(R) is a subset of that Cartesian product.
[HI] प्रत्येक वैध टपल डोमेन्स के कार्टेशियन गुणनफल का सदस्य होता है, अतः पूरा रिलेशन इस गुणनफल का उपसमुच्चय होता है।
Q5. What is the difference between Relation Intension and Relation Extension?
(रिलेशन इंटेंशन (Intension) और रिलेशन एक्सटेंशन (Extension) में क्या अंतर है?)
(A) Intension is always deleted after queries; Extension is permanent
(B) Intension is the static Relation Schema; Extension is the dynamic current set of tuples (Instance)
(C) Intension is the row data; Extension is the column headers
(D) Both terms mean Domain constraints
Correct Answer: (B)
[EN] The schema structure is the Intension (changes rarely via DDL), while the table's populated rows form the Extension (changes frequently via DML).
[HI] स्कीमा (संरचना) को इंटेंशन कहते हैं जबकि किसी क्षण टेबल में मौजूद वास्तविक पंक्तियों (डेटा) को एक्सटेंशन कहा जाता है।
Q6. According to the strict mathematical definition of a Relation, what is true about the ordering of tuples?
(रिलेशन की शुद्ध गणितीय परिभाषा के अनुसार टपल्स (पंक्तियों) के क्रम (Ordering) के बारे में क्या सत्य है?)
(A) The order of tuples is completely irrelevant because a relation is a mathematical set
(B) Tuples are ordered permanently by insertion timestamp
(C) Swapping two rows creates a different relation
(D) Tuples must always be sorted alphabetically
Correct Answer: (A)
[EN] Set theory treats {t1, t2} and {t2, t1} as identical relations; row order has no logical meaning.
[HI] चूंकि रिलेशन एक समुच्चय (Set) है, इसलिए टपल्स का क्रम कोई अर्थ नहीं रखता; दो पंक्तियों का स्थान बदलने पर भी रिलेशन वही रहता है।
Q7. Which fundamental property must every attribute value obey in Codd's flat Relational Model (First Normal Form)?
(कॉड के रिलेशनल मॉडल (1NF) में प्रत्येक एट्रिब्यूट के मान को किस मूल गुण का पालन करना आवश्यक है?)
(A) Multi-valued nesting
(B) Pointer chaining
(C) Atomicity (each cell holds a single, indivisible value)
(D) Duplicate attribute names
Correct Answer: (C)
[EN] Atomic values cannot be decomposed into lists or nested relations inside a single table cell.
[HI] परमाणुता (Atomicity) का अर्थ है कि प्रत्येक सेल में केवल एक ही अविभाज्य मान होना चाहिए, कोई सूची या सेट नहीं।
Q8. In the Relational Model, what does a NULL value inside a tuple actually signify?
(रिलेशनल मॉडल में किसी टपल के सेल में भरा 'NULL' मान वास्तव में क्या दर्शाता है?)
(A) An automatic primary key value
(B) The value is unknown, missing, or not applicable (distinct from 0 or empty string)
(C) An empty space character (' ')
(D) Numeric zero (0)
Correct Answer: (B)
[EN] NULL represents missing or inapplicable metadata—not numeric zero or blank text.
[HI] NULL का अर्थ शून्य या खाली स्पेस नहीं बल्कि 'अज्ञात', 'अनुपलब्ध' या 'लागू न होने वाला' मान होता है।
Q9. Can two distinct attributes in the same Relation schema have the exact same attribute name?
(क्या एक ही रिलेशन स्कीमा के भीतर दो अलग-अलग कॉलमों (Attributes) का नाम बिल्कुल समान हो सकता है?)
(A) Yes, in First Normal Form
(B) Yes, if their domains differ
(C) Yes, if one is a foreign key
(D) No, every attribute name within a relation schema must be unique
Correct Answer: (D)
[EN] Because attributes are referenced by name rather than position, attribute names within one relation must be distinct.
[HI] एक ही टेबल में कॉलम को उनके नाम से पहचाना जाता है, अतः दो कॉलमों के नाम समान नहीं हो सकते।
Q10. Can two different attributes (even in the same relation) draw values from the SAME underlying Domain?
(क्या दो अलग-अलग एट्रिब्यूट्स (एक ही टेबल में भी) एक ही डोमेन से मान ले सकते हैं?)
(A) Only if they are Primary Keys
(B) Yes (for example, Home_Phone and Office_Phone both draw from Phone_Domain)
(C) Only in SQL Server, never in relational theory
(D) No, every attribute requires a disjoint physical domain
Correct Answer: (B)
[EN] A domain is a reusable type/value pool; multiple attributes like Start_Date and End_Date can share the Date domain.
[HI] हाँ, एक ही डोमेन (जैसे Date या Phone_Domain) का उपयोग कई अलग-अलग कॉलमों जैसे Start_Date और End_Date के लिए हो सकता है।
Q11. What distinguishes a pure mathematical Relation from a practical SQL Table?
(एक शुद्ध गणितीय रिलेशन और व्यावहारिक SQL टेबल के बीच मुख्य अंतर क्या है?)
(A) SQL tables lack columns
(B) A pure Relation forbids duplicate tuples (Set), whereas an SQL Table allows duplicate rows unless a key/UNIQUE is defined (Multiset/Bag)
(C) SQL tables forbid NULL values everywhere
(D) Pure Relations allow nested tables in cells
Correct Answer: (B)
[EN] SQL operates on bags (multisets) by default—requiring PRIMARY KEY or DISTINCT to enforce pure set uniqueness.
[HI] शुद्ध रिलेशन एक सेट (Set) होने से डुप्लीकेट पंक्तियों की अनुमति नहीं देता, जबकि बिना Key के SQL टेबल में डुप्लीकेट रोज़ हो सकती हैं।
Q12. Which mathematical foundation underpins the Relational Model?
(रिलेशनल मॉडल किस गणितीय सिद्धांत पर आधारित है?)
(A) Boolean K-Maps only
(B) Hierarchical Tree Pointers
(C) Set Theory and First-Order Predicate Logic
(D) Differential Calculus and Graph Coloring
Correct Answer: (C)
[EN] Codd combined mathematical relations (set theory) with predicate logic to create a declarative data model.
[HI] ई.एफ. कॉड ने सेट थ्योरी (समुच्चय सिद्धांत) और प्रेडिकेट लॉजिक के आधार पर रिलेशनल मॉडल बनाया था।
Q13. Suppose Relation R has attributes (ID, Name, Dept). Is R(Name, Dept, ID) considered the same relation schema logically?
(यदि रिलेशन R के कॉलम (ID, Name, Dept) हैं, तो क्या (Name, Dept, ID) क्रम तार्किक रूप से वही रिलेशन माना जाता है?)
(A) Only if all attributes have the same domain
(B) Yes, because attributes are identified by name rather than physical left-to-right column position
(C) No, swapping two columns creates a completely different relation
(D) No, because Primary Key must always be column 1
Correct Answer: (B)
[EN] In relational theory, a tuple is a mapping from attribute names to values, so attribute ordering is irrelevant.
[HI] एट्रिब्यूट्स की पहचान उनके नाम से होती है न कि क्रम से, इसलिए कॉलमों का क्रम बदलने पर भी रिलेशन तार्किक रूप से वही रहता है।
Q14. Which of the following is NOT an example of a valid atomic domain value in a strict 1NF relation?
(निम्न में से कौन सा मान 1NF रिलेशनल मॉडल में वैध 'परमाणु' (Atomic) डोमेन मान नहीं है?)
(A) A comma-separated list ['98110...', '98220...'] stored in a single Phone cell
(B) A single integer 42
(C) A single string 'Jaipur'
(D) A single date '2026-11-11'
Correct Answer: (A)
[EN] Storing a multi-value array/list inside one cell violates atomicity (1NF).
[HI] एक ही सेल में कई फोन नंबरों की सूची रखना परमाणुता (Atomicity) के नियम का उल्लंघन है।
Q15. If Domain D1 = {1, 2} and Domain D2 = {'A', 'B', 'C'}, how many total possible tuples can exist in the Cartesian product D1 × D2?
(यदि डोमेन D1 = {1, 2} और D2 = {'A', 'B', 'C'} हों, तो D1 × D2 के कार्टेशियन गुणनफल में अधिकतम कितने टपल संभव हैं?)
(A) 6 tuples (2 × 3)
(B) 5 tuples (2 + 3)
(C) 8 tuples (2³)
(D) 2 tuples
Correct Answer: (A)
[EN] Cartesian product size is |D1| × |D2| = 2 × 3 = 6.
[HI] कार्टेशियन गुणनफल में संभावित टपल्स की कुल संख्या |D1| × |D2| = 2 × 3 = 6 होती है।
Q16. Which statement about the Relational Model is FALSE?
(रिलेशनल मॉडल के विषय में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)
(A) No two tuples in a pure mathematical relation can be identical
(B) The physical ordering of tuples determines the logical meaning of a relation
(C) Every attribute draws its values from a defined Domain
(D) A Relation Schema represents the Intension of a database table
Correct Answer: (B)
[EN] Tuple order carries zero semantic weight in the Relational Model—queries specify order only during presentation via ORDER BY.
[HI] रिलेशनल मॉडल में टपल्स के भौतिक क्रम का कोई तार्किक महत्व नहीं होता।
Q17. Within Relational Model Concepts: Relations, Tuples, Attributes, Domains, which relational model term directly maps to: "2D Table (Subset of Cartesian Product)"?
(Relational Model Concepts: Relations, Tuples, Attributes, Domains में कौन सा Relational Model Term सीधे "2D Table (Subset of Cartesian Product)" से संबंधित है?)
(A) Relation
(B) Domain
(C) Tuple
(D) Attribute
Correct Answer: (A)
[EN] In Relational Model Concepts: Relations, Tuples, Attributes, Domains, 'Relation' handles '2D Table (Subset of Cartesian Product)' (Contains unordered, distinct tuples with atomic cells).
[HI] Relational Model Concepts: Relations, Tuples, Attributes, Domains में 'Relation' का कार्य/विवरण '2D Table (Subset of Cartesian Product)' (Contains unordered, distinct tuples with atomic cells) है।
Q18. Which option accurately describes 'Tuple' in Relational Model Concepts: Relations, Tuples, Attributes, Domains?
(Relational Model Concepts: Relations, Tuples, Attributes, Domains के संदर्भ में 'Tuple' की सही विशेषता कौन सी है?)
(A) Column / Field name
(B) 2D Table (Subset of Cartesian Product)
(C) Set of permissible atomic values
(D) Row / Record in a table
Correct Answer: (D)
[EN] 'Tuple' provides 'Row / Record in a table' — key point: Ordering is irrelevant; duplicates prohibited in pure RM.
[HI] 'Tuple' का मुख्य विवरण 'Row / Record in a table' है (Ordering is irrelevant; duplicates prohibited in pure RM)।
Q19. In Relational Model Concepts: Relations, Tuples, Attributes, Domains, identify the correct parameter for the specification: "Column / Field name".
(Relational Model Concepts: Relations, Tuples, Attributes, Domains में "Column / Field name" विवरण किस विकल्प के लिए सही है?)
(A) Attribute
(B) Domain
(C) Relation
(D) Tuple
Correct Answer: (A)
[EN] 'Attribute' corresponds to 'Column / Field name' (Must have unique name in schema; values are indivisible).
[HI] 'Attribute' का संबंध 'Column / Field name' (Must have unique name in schema; values are indivisible) से है।
Q20. Considering Relational Model Concepts: Relations, Tuples, Attributes, Domains, what key behavior defines 'Domain'?
(Relational Model Concepts: Relations, Tuples, Attributes, Domains में 'Domain' की मुख्य भूमिका या मान क्या है?)
(A) Set of permissible atomic values
(B) Row / Record in a table
(C) 2D Table (Subset of Cartesian Product)
(D) Column / Field name
Correct Answer: (A)
[EN] 'Domain' represents 'Set of permissible atomic values' (Defines type, format, and valid range for an attribute).
[HI] 'Domain' का अर्थ/मान 'Set of permissible atomic values' है (Defines type, format, and valid range for an attribute)।
Relational Model Concepts: Relations, Tuples, Attributes, Domains — Exam FAQs
Q1: Why can't two rows be identical in a pure Relational Model?
शुद्ध रिलेशनल मॉडल में दो पंक्तियाँ बिल्कुल एक जैसी क्यों नहीं हो सकतीं?
[EN] Because a Relation is mathematically defined as a SET of tuples, and by definition a mathematical set cannot contain duplicate elements. This guarantees every row represents a distinct entity or fact.
[HI] क्योंकि रिलेशन गणितीय रूप से टपल्स का एक समुच्चय (Set) होता है, और किसी सेट में एक ही तत्व दो बार नहीं आ सकता।
Q2: Is there a difference between a 'Relation' and a 'Relationship' in DBMS?
DBMS में 'Relation' और 'Relationship' शब्दों में क्या अंतर है?
[EN] Yes! 'Relation' refers to a table in the Relational Model (rows & columns), whereas 'Relationship' refers to the diamond-shaped association linking entity sets in an ER Diagram.
[HI] हाँ! 'Relation' का अर्थ रिलेशनल मॉडल की टेबल (Table) से है, जबकि 'Relationship' ER डायग्राम में एंटिटीज़ के बीच के जुड़ाव (डायमंड) को कहते हैं।
Q3: Are NULL and zero (0) or blank string ('') treated equally in relational databases?
क्या रिलेशनल डेटाबेस में NULL, शून्य (0) और खाली स्ट्रिंग ('') को एक समान माना जाता है?
[EN] No. Zero is a valid numeric value and '' is a valid zero-length string, whereas NULL signifies the absence or unknown status of any value.
[HI] नहीं। शून्य (0) एक वास्तविक संख्या है और '' एक खाली टेक्स्ट मान है, जबकि NULL मान की अनुपस्थिति या अज्ञात स्थिति को दर्शाता है।
Post a Comment
Post a Comment