PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) (ER संबंध: संबंधों की डिग्री (यूनरी, बाइनरी, टर्नरी और N-ary रिलेशंस)) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: In ER modeling, the Degree of a Relationship counts the number of participating entity roles—spanning Unary/Recursive (Degree 1), Binary (Degree 2, most prevalent), Ternary (Degree 3, preventing semantic connection traps), and N-ary relationships mapped via multi-key junction tables.
अध्याय सार: ER मॉडल में संबंध की डिग्री (Degree) भाग लेने वाली एंटिटी भूमिकाओं की संख्या बताती है—यूनरी/रिकर्सिव (डिग्री 1), बाइनरी (डिग्री 2, सर्वाधिक प्रचलित), टर्नरी (डिग्री 3) और N-ary रिलेशंस।
ER Relationships: Degree of Relationship (Binary, Ternary, N-ary): Detailed Notes & Architecture (ER संबंध: संबंधों की डिग्री (यूनरी, बाइनरी, टर्नरी और N-ary रिलेशंस))
1. Relationship Sets vs Degree of a Relationship (रिलेशनशिप सेट बनाम संबंध की डिग्री)
[EN] A Relationship Type defines an association among Entity Types, while a Relationship Set holds the current collection of relationship instances (represented as a Diamond in Chen's ER notation). Crucially for exams, do NOT confuse Degree with Cardinality Ratio: the Degree of a Relationship equals the number of participating entity types/roles in that diamond (e.g., 1, 2, 3, ... N), whereas Cardinality Ratio specifies instance counts (1:1, 1:N, M:N). Relationships of Degree 2 are overwhelmingly common in practice.
[HI] रिलेशनशिप टाइप विभिन्न एंटिटीज के बीच जुड़ाव परिभाषित करता है और इसे ER आरेख में हीरे (Diamond) से दर्शाते हैं। परीक्षा की दृष्टि से 'डिग्री' और 'कार्डिनैलिटी' में अंतर समझना बेहद जरूरी है: संबंध की डिग्री (Degree) उस संबंध में भाग लेने वाली एंटिटी भूमिकाओं की कुल संख्या (1, 2, 3...) होती है, जबकि कार्डिनैलिटी (1:1, 1:N, M:N) एंटिटी के सदस्यों की संख्या का अनुपात बताती है।
2. Unary (Recursive) Relationships — Degree 1 (यूनरी (रिकर्सिव) संबंध — डिग्री 1)
[EN] A Unary (or Recursive) Relationship has Degree 1 because the exact same Entity Type participates twice in two distinct roles within one relationship. Classic examples include `EMPLOYEE supervises EMPLOYEE` (roles: `Supervisor` and `Subordinate`), `COURSE requires_prerequisite COURSE`, and `PERSON married_to PERSON`. Because both lines connect to the same rectangle, Role Names MUST be labeled on the diamond edges to resolve ambiguity; in SQL, this maps via a self-referencing Foreign Key on the same table.
[HI] यूनरी (Recursive) संबंध की डिग्री 1 होती है क्योंकि इसमें एक ही एंटिटी टाइप स्वयं से दो अलग-अलग भूमिकाओं में जुड़ता है—जैसे `EMPLOYEE` द्वारा `EMPLOYEE` का प्रबंधन (`Supervisor` और `Subordinate` भूमिका), या `COURSE` की पूर्व-आवश्यकता (`Prerequisite`)। दोनों रेखाएं एक ही आयत से जुड़ने के कारण आरेख में 'रोल नाम' (Role Names) लिखना आवश्यक होता है, और SQL में यह सेल्फ-रेफरेंसिंग फॉरेन-की से बनता है।
3. Binary Relationships — Degree 2 (बाइनरी संबंध — डिग्री 2)
[EN] A Binary Relationship has Degree 2, associating two distinct Entity Types—such as `STUDENT enrolls_in COURSE`, `DEPARTMENT employs EMPLOYEE`, or `CUSTOMER places ORDER`. Binary relationships dominate real-world conceptual schemas because almost every business interaction pairs two primary actors/objects, and mapping rules are straightforward: 1:1 and 1:N embed a Foreign Key on one side, while M:N creates an associative junction table carrying both Primary Keys.
[HI] बाइनरी संबंध की डिग्री 2 होती है और यह दो अलग-अलग एंटिटीज को जोड़ता है, जैसे `STUDENT enrolls_in COURSE` या `DEPARTMENT employs EMPLOYEE`। वास्तविक डेटाबेस डिज़ाइन में सर्वाधिक प्रयोग बाइनरी संबंधों का ही होता है क्योंकि 1:1 व 1:N को आसानी से फॉरेन-की से और M:N को एक मध्यवर्ती जंक्शन तालिका द्वारा रिलेशनल स्कीमा में बदला जा सकता है।
4. Ternary (Degree 3) & N-ary Relationships — Semantic Integrity (टर्नरी (डिग्री 3) और N-ary संबंध — अर्थपूर्ण अखंडता)
[EN] A Ternary Relationship (Degree 3) binds three Entity Types simultaneously in one atomic event—for example, `SUPPLIER supplies PART to PROJECT` with descriptive attribute `Quantity`, or `DOCTOR prescribes MEDICINE to PATIENT`. Crucially, a genuine Ternary relationship CANNOT always be decomposed into three separate Binary relationships (`Supplies_Part`, `Supplies_Project`, `Part_Used_In_Project`) without losing exact knowledge (the Connection Trap: knowing S supplies P and S supplies Proj J doesn't prove S supplied P specifically to J!). Ternary/N-ary relationships map to a dedicated relational table holding Foreign Keys from all N participating entities.
[HI] टर्नरी संबंध (डिग्री 3) एक ही घटना में तीन एंटिटीज को जोड़ता है—जैसे `SUPPLIER`, `PART` और `PROJECT` के बीच `Supplies` संबंध। ध्यान रहे कि वास्तविक टर्नरी संबंध को हमेशा तीन अलग बाइनरी संबंधों में नहीं तोड़ा जा सकता, वरना 'कनेक्शन ट्रैप' से सही अर्थ नष्ट हो जाता है (यह पता नहीं चलता कि किस सप्लायर ने कौन सा पुर्जा किस प्रोजेक्ट को दिया)। N-ary संबंध को SQL में बदलते समय सभी N एंटिटीज की प्राइमरी की लेकर एक अलग जंक्शन तालिका बनती है।
Syntax, Formula & Technical Example (ER Relationships: Degree of Relationship (Binary, Ternary, N-ary))
-- Degree 1 (Unary Self-Join) vs Degree 3 (Ternary Junction Table) in SQL
-- [1] UNARY (Degree 1): EMPLOYEE --(Supervisor / Subordinate)--< Manages >-- EMPLOYEE
CREATE TABLE Employee (
Emp_ID INT PRIMARY KEY, Name VARCHAR(50),
Manager_ID INT REFERENCES Employee(Emp_ID) -- Self-referencing FK
);
-- [3] TERNARY (Degree 3): SUPPLIER, PART, PROJECT --< Supplies(Qty) >--
CREATE TABLE Supplies (
Sup_ID INT REFERENCES Supplier(Sup_ID),
Part_ID INT REFERENCES Part(Part_ID),
Proj_ID INT REFERENCES Project(Proj_ID),
Quantity INT, PRIMARY KEY (Sup_ID, Part_ID, Proj_ID)
);
ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) Quick Reference & Comparison Table
| Relationship Degree | Participating Entity Types & Example | ER Labeling & SQL Mapping Rule |
|---|---|---|
| Unary (Recursive) — Degree 1 | 1 Entity Type in 2 roles (e.g., Employee manages Employee) | Requires explicit Role Names on lines; self-referencing FK |
| Binary — Degree 2 | 2 Entity Types (e.g., Student enrolls_in Course) | Most common; maps via FK (1:1/1:N) or 2-key table (M:N) |
| Ternary — Degree 3 | 3 Entity Types simultaneously (e.g., Supplier-Part-Project) | Avoids connection trap; maps to 3-FK associative table |
| N-ary — Degree N (>= 3) | N Entity Types bound in one joint event/transaction | Always maps to separate table carrying all N entity PKs |
ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) Top 20 Bilingual MCQs with Answers
Q1. What does the 'Degree' of a Relationship measure in an ER diagram?
(ER आरेख में किसी संबंध की 'डिग्री' (Degree of Relationship) क्या मापती है?)
(A) The count of Simple attributes attached to an entity
(B) The number of Entity Types (participating roles) connected to that relationship diamond
(C) The total number of tuples currently stored in the table
(D) The cardinality ratio (1:1, 1:N, M:N) between rows
Correct Answer: (B)
[EN] Degree counts participating Entity Types (Unary=1, Binary=2, Ternary=3), whereas Cardinality counts instance participation limits.
[HI] संबंध की डिग्री उस हीरे (Diamond) से जुड़ने वाले एंटिटी टाइप्स की संख्या बताती है (जैसे यूनरी=1, बाइनरी=2, टर्नरी=3)।
Q2. Which degree describes the relationship `EMPLOYEE supervises EMPLOYEE`?
(`EMPLOYEE supervises EMPLOYEE` संबंध किस डिग्री का उदाहरण है?)
(A) Degree 1 (Unary / Recursive Relationship)
(B) Degree 3 (Ternary Relationship)
(C) Degree 2 (Binary Relationship)
(D) Degree 0 (Nullary Entity)
Correct Answer: (A)
[EN] Only ONE Entity Type (`EMPLOYEE`) participates in the relationship by assuming two distinct roles (`Supervisor` and `Subordinate`).
[HI] क्योंकि इसमें एक ही एंटिटी टाइप (`EMPLOYEE`) दो भूमिकाओं में स्वयं से जुड़ती है, इसलिए इसकी डिग्री 1 (यूनरी/रिकर्सिव) है।
Q3. Why MUST Role Names be written along the connecting lines of a Unary (Recursive) Relationship in an ER diagram?
(ER आरेख में यूनरी (रिकर्सिव) संबंध की रेखाओं पर 'रोल नाम' (Role Names) लिखना क्यों आवश्यक होता है?)
(A) To clarify which line represents which semantic role (e.g., `Prerequisite` vs `Target_Course` or `Manager` vs `Subordinate`)
(B) To convert a Unary relationship into a Derived Attribute
(C) Because SQL refuses to parse diamonds without three colors
(D) To force a Weak Entity double border automatically
Correct Answer: (A)
[EN] Because both lines enter the identical Entity box, omitting role labels leaves readers unable to tell who manages whom.
[HI] दोनों रेखाएं एक ही एंटिटी आयत से जुड़ती हैं, इसलिए कौन सी रेखा किस भूमिका (जैसे सुपरवाइज़र बनाम अधीनस्थ) को दर्शाती है, यह स्पष्ट करने हेतु रोल नाम जरूरी हैं।
Q4. How is a 1:N Unary (Recursive) relationship like `Employee(Emp_ID, Name)` with `Supervisor` implemented in Relational SQL?
(1:N यूनरी (रिकर्सिव) संबंध जैसे `Employee` सुपरवाइज़र को रिलेशनल SQL में कैसे लागू किया जाता है?)
(A) By adding a self-referencing Foreign Key column (e.g. `Manager_ID`) inside the `Employee` table pointing back to `Emp_ID`
(B) By creating a completely unrelated database server
(C) By deleting the Primary Key `Emp_ID`
(D) By duplicating every employee row three times
Correct Answer: (A)
[EN] A self-referencing Foreign Key lets each employee row point directly to the `Emp_ID` of their manager (or `NULL` for the CEO).
[HI] `Employee` तालिका के भीतर ही एक सेल्फ-रेफरेंसिंग फॉरेन-की (`Manager_ID`) जोड़कर, जो उसी तालिका के `Emp_ID` की ओर संकेत करती है।
Q5. Why can't a Ternary Relationship `SUPPLIER supplies PART to PROJECT` always be safely replaced by three separate Binary relationships (`S-P`, `P-J`, `S-J`)?
(`SUPPLIER supplies PART to PROJECT` जैसे टर्नरी संबंध को हमेशा तीन अलग बाइनरी संबंधों से सुरक्षित रूप से क्यों नहीं बदला जा सकता?)
(A) Because SQL forbids having more than two tables in one database
(B) Because Ternary relationships automatically violate 1NF
(C) Decomposing into three binary links loses which exact Supplier provided which specific Part to which specific Project (the Connection Trap)
(D) Because Binary relationships cannot have attributes
Correct Answer: (C)
[EN] Knowing Supplier S1 supplies Part P1, P1 is used on Project J1, and S1 supplies Project J1 does NOT prove S1 actually supplied P1 to J1!
[HI] तीन बाइनरी संबंध जोड़ने पर यह सटीक जानकारी खो जाती है कि किस सप्लायर ने कौन सा विशेष पुर्जा किस विशेष प्रोजेक्ट को दिया (Lossy Join / Connection Trap)।
Q6. When mapping a Ternary M:N:P relationship among `Doctor`, `Patient`, and `Medicine` into Relational tables, what structure is generated?
(`Doctor`, `Patient` और `Medicine` के बीच एक टर्नरी M:N:P संबंध को रिलेशनल तालिकाओं में बदलने पर कैसी संरचना बनती है?)
(A) Adding `Med_ID` only to `Doctor` and omitting `Patient`
(B) No Foreign Keys are created at all
(C) Merging all three entities into a single flat unnormalized table
(D) A separate `Prescription` table containing Foreign Keys from all three entities (`Doc_ID`, `Pat_ID`, `Med_ID`) plus any relationship attributes
Correct Answer: (D)
[EN] Any N-ary (N >= 3) relationship where multiple instances participate translates to a new associative relation linking all participating Primary Keys.
[HI] टर्नरी संबंध के लिए एक अलग संबंध तालिका (`Prescription`) बनती है जिसमें तीनों एंटिटीज की प्राइमरी की फॉरेन-की के रूप में शामिल होती हैं।
Q7. Which relationship degree is by far the most common in commercial database ER schemas?
(व्यावसायिक डेटाबेस ER स्कीमा में सबसे अधिक किस डिग्री के संबंध प्रयुक्त होते हैं?)
(A) Ternary (Degree 3)
(B) Unary (Degree 1)
(C) Binary (Degree 2)
(D) Quaternary (Degree 4)
Correct Answer: (C)
[EN] Most conceptual associations connect two entities (`Customer`–`Order`, `Student`–`Course`, `Dept`–`Employee`), making Binary the dominant degree.
[HI] अधिकांश व्यावहारिक संबंध दो एंटिटीज को जोड़ते हैं, इसलिए बाइनरी (डिग्री 2) संबंध सर्वाधिक प्रचलित हैं।
Q8. In an ER diagram, `EMPLOYEE` works on `PROJECT` with attribute `Hours_Per_Week`. What is the Degree of `WORKS_ON` and where does `Hours_Per_Week` belong in SQL?
(`EMPLOYEE` और `PROJECT` के बीच `WORKS_ON` संबंध पर `Hours_Per_Week` एट्रिब्यूट है। इसकी डिग्री क्या है और SQL में `Hours_Per_Week` कहाँ जाएगा?)
(A) Degree = 2 (Binary M:N); `Hours_Per_Week` becomes a column inside the `Works_On` junction table
(B) Degree = 2; `Hours_Per_Week` is deleted automatically
(C) Degree = 1 (Unary); `Hours_Per_Week` goes inside `Employee` only
(D) Degree = 3 (Ternary); `Hours_Per_Week` becomes a standalone Entity
Correct Answer: (A)
[EN] Attributes attached to a relationship diamond are NOT separate participating entities—the degree remains 2, and the descriptive column lands in the M:N bridge table.
[HI] एट्रिब्यूट (`Hours_Per_Week`) एंटिटी नहीं है, इसलिए डिग्री 2 ही रहती है; M:N मैपिंग में यह एट्रिब्यूट जंक्शन तालिका `Works_On` में जाएगा।
Q9. What is the Degree of a relationship connecting `University`, `Student`, `Course`, and `Semester` simultaneously in one diamond?
(एक ही हीरे (Diamond) में `University`, `Student`, `Course` और `Semester` को एक साथ जोड़ने वाले संबंध की डिग्री क्या होगी?)
(A) 2 (Binary)
(B) 3 (Ternary)
(C) 1 (Unary)
(D) 4 (Quaternary / N-ary Relationship)
Correct Answer: (D)
[EN] Since four distinct entity types connect directly to that single relationship diamond, the degree is 4.
[HI] क्योंकि एक ही संबंध से 4 अलग-अलग एंटिटी टाइप्स जुड़े हैं, इसलिए इस N-ary (चतुर्थक) संबंध की डिग्री 4 होगी।
Q10. In a Binary M:N relationship (`Author` writes `Book`), how many total relational tables are created when mapping the two Strong Entities and their M:N relationship?
(एक बाइनरी M:N संबंध (`Author` लिखता है `Book`) और दोनों स्ट्रॉन्ग एंटिटीज को रिलेशनल स्कीमा में बदलने पर कुल कितनी तालिकाएँ बनेंगी?)
(A) 1 single combined table
(B) 4 tables (including an extra Unary table)
(C) 2 tables (`Author` and `Book` only)
(D) 3 tables (`Author`, `Book`, and `Author_Book` junction table)
Correct Answer: (D)
[EN] Each Strong Entity gets 1 table (2 total), and an M:N relationship always requires a 3rd bridge/junction table.
[HI] दोनों स्ट्रॉन्ग एंटिटीज की 2 तालिकाएं और M:N संबंध के लिए 1 मध्यवर्ती जंक्शन तालिका—कुल 3 तालिकाएँ बनेंगी।
Q11. How do you convert a 1:N Binary relationship (like `Department` 1 — N `Employee`) into Relational SQL without creating a third table?
(1:N बाइनरी संबंध (`Department` 1 — N `Employee`) को बिना तीसरी तालिका बनाए रिलेशनल SQL में कैसे बदला जाता है?)
(A) Place every `Emp_ID` as a comma-separated list inside `Department`
(B) Place the Primary Key of the '1' side (`Dept_ID`) as a Foreign Key inside the 'N' side table (`Employee`)
(C) Add both Primary Keys into an XML config file
(D) Create an empty Weak Entity rectangle
Correct Answer: (B)
[EN] Embedding the '1' side's Primary Key on the 'N' side ensures every employee points cleanly to one department without violating 1NF.
[HI] हमेशा '1' पक्ष (`Department`) की प्राइमरी की को 'N' पक्ष (`Employee`) की तालिका में फॉरेन-की के रूप में जोड़ा जाता है।
Q12. Which SQL query technique retrieves data from a Recursive (Unary) table like `Employee(Emp_ID, Name, Manager_ID)` to print each employee alongside their manager's name?
(यूनरी तालिका `Employee(Emp_ID, Name, Manager_ID)` से हर कर्मचारी और उसके मैनेजर का नाम एक साथ दिखाने के लिए कौन सी SQL तकनीक प्रयुक्त होती है?)
(A) Cartesian Cross Join without WHERE
(B) Self-Join (`FROM Employee e JOIN Employee m ON e.Manager_ID = m.Emp_ID`)
(C) ALTER TABLE DROP PRIMARY KEY
(D) TRUNCATE TABLE
Correct Answer: (B)
[EN] A Self-Join aliases the same table twice (`e` for employee, `m` for manager) to traverse Unary relationships in SQL.
[HI] यूनरी (रिकर्सिव) संबंध को क्वेरी करने के लिए एक ही तालिका को दो एलियस (`e` और `m`) देकर सेल्फ-जॉइन (Self-Join) चलाया जाता है।
Q13. If a relationship `Marries` connects `Person` to `Person` with 1:1 cardinality, what is its Degree?
(यदि `Marries` संबंध 1:1 कार्डिनैलिटी के साथ `Person` को `Person` से जोड़ता है, तो इसकी डिग्री क्या है?)
(A) Degree 0 (because it is 1:1)
(B) Degree 2 (because two people marry)
(C) Degree 1 (Unary / Recursive)
(D) Degree 3
Correct Answer: (C)
[EN] Degree counts distinct Entity TYPE connections (roles on `PERSON` type = 1), NOT the number of human instances (2 people) involved in a marriage.
[HI] डिग्री एंटिटी 'टाइप' की संख्या गिनती है (यहाँ केवल 1 एंटिटी टाइप `Person` है), न कि व्यक्तियों की संख्या; इसलिए डिग्री 1 (यूनरी) होगी।
Q14. When is it actually safe to replace a Ternary relationship with Binary relationships in ER modeling?
(ER मॉडलिंग में किसी टर्नरी संबंध को बाइनरी संबंधों में बदलना वास्तव में कब सुरक्षित होता है?)
(A) Never — Binary relationships cannot exist in any database
(B) Only when one binary link uniquely determines the third entity (e.g., functional dependency or 1:1/N:1 constraints hold without lossy joins)
(C) Always — every Ternary relationship is 100% identical to three Binary relationships
(D) Whenever attributes are capitalized in uppercase
Correct Answer: (B)
[EN] Lossless decomposition of a Ternary diamond depends on functional dependencies/cardinalities; in a general M:N:P ternary, decomposition is lossy.
[HI] जब तीनों के बीच फंक्शनल डिपेंडेंसी (जैसे 1:1 या N:1 बाध्यता) के कारण लॉसलेस जॉइन (Lossless Join) सिद्ध हो तभी विघटन सुरक्षित है; सामान्य M:N:P में नहीं।
Q15. Which statement accurately compares Degree vs Cardinality Ratio in ER diagrams?
(ER आरेखों में 'डिग्री' (Degree) और 'कार्डिनैलिटी अनुपात' (Cardinality Ratio) की सही तुलना कौन सा कथन करता है?)
(A) Degree applies only to Weak Entities, while Cardinality applies only to Attributes
(B) Both terms are exact synonyms in Peter Chen notation
(C) Cardinality specifies the number of columns, while Degree specifies primary key type
(D) Degree specifies how many entity types participate in a relationship, while Cardinality specifies how many entity instances can associate
Correct Answer: (D)
[EN] Understanding `Degree = entity count per diamond` vs `Cardinality = 1:1, 1:N, M:N instance mapping` resolves a common exam trap.
[HI] डिग्री बताती है कि संबंध में कितने एंटिटी टाइप भाग ले रहे हैं, जबकि कार्डिनैलिटी (1:1, 1:N, M:N) बताती है कि एक सदस्य कितने अन्य सदस्यों से जुड़ सकता है।
Q16. Which of the following statements about ER Relationships and Degrees is FALSE?
(ER संबंधों और उनकी डिग्रियों के बारे में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)
(A) A Binary relationship has Degree 2 and connects two entity types
(B) An M:N Binary relationship maps to a separate bridge table containing both entity Primary Keys
(C) A Unary relationship connects an entity type to itself and requires role names
(D) Every Ternary (Degree 3) relationship can always be split into three Binary relationships without losing any information
Correct Answer: (D)
[EN] Splitting a general Ternary relationship into binary pairs often creates a Connection Trap (lossy decomposition), losing which three instances actually interacted together.
[HI] प्रत्येक टर्नरी संबंध को बिना जानकारी खोए तीन बाइनरी संबंधों में नहीं तोड़ा जा सकता—इससे कनेक्शन ट्रैप (Lossy Decomposition) उत्पन्न होता है।
Q17. Within ER Relationships: Degree of Relationship (Binary, Ternary, N-ary), which relationship degree directly maps to: "1 Entity Type in 2 roles (e.g., Employee manages Employee)"?
(ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) में कौन सा Relationship Degree सीधे "1 Entity Type in 2 roles (e.g., Employee manages Employee)" से संबंधित है?)
(A) Ternary — Degree 3
(B) N-ary — Degree N (>= 3)
(C) Binary — Degree 2
(D) Unary (Recursive) — Degree 1
Correct Answer: (D)
[EN] In ER Relationships: Degree of Relationship (Binary, Ternary, N-ary), 'Unary (Recursive) — Degree 1' handles '1 Entity Type in 2 roles (e.g., Employee manages Employee)' (Requires explicit Role Names on lines; self-referencing FK).
[HI] ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) में 'Unary (Recursive) — Degree 1' का कार्य/विवरण '1 Entity Type in 2 roles (e.g., Employee manages Employee)' (Requires explicit Role Names on lines; self-referencing FK) है।
Q18. Which option accurately describes 'Binary — Degree 2' in ER Relationships: Degree of Relationship (Binary, Ternary, N-ary)?
(ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) के संदर्भ में 'Binary — Degree 2' की सही विशेषता कौन सी है?)
(A) 2 Entity Types (e.g., Student enrolls_in Course)
(B) N Entity Types bound in one joint event/transaction
(C) 3 Entity Types simultaneously (e.g., Supplier-Part-Project)
(D) 1 Entity Type in 2 roles (e.g., Employee manages Employee)
Correct Answer: (A)
[EN] 'Binary — Degree 2' provides '2 Entity Types (e.g., Student enrolls_in Course)' — key point: Most common; maps via FK (1:1/1:N) or 2-key table (M:N).
[HI] 'Binary — Degree 2' का मुख्य विवरण '2 Entity Types (e.g., Student enrolls_in Course)' है (Most common; maps via FK (1:1/1:N) or 2-key table (M:N))।
Q19. In ER Relationships: Degree of Relationship (Binary, Ternary, N-ary), identify the correct parameter for the specification: "3 Entity Types simultaneously (e.g., Supplier-Part-Project)".
(ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) में "3 Entity Types simultaneously (e.g., Supplier-Part-Project)" विवरण किस विकल्प के लिए सही है?)
(A) Unary (Recursive) — Degree 1
(B) Binary — Degree 2
(C) N-ary — Degree N (>= 3)
(D) Ternary — Degree 3
Correct Answer: (D)
[EN] 'Ternary — Degree 3' corresponds to '3 Entity Types simultaneously (e.g., Supplier-Part-Project)' (Avoids connection trap; maps to 3-FK associative table).
[HI] 'Ternary — Degree 3' का संबंध '3 Entity Types simultaneously (e.g., Supplier-Part-Project)' (Avoids connection trap; maps to 3-FK associative table) से है।
Q20. Considering ER Relationships: Degree of Relationship (Binary, Ternary, N-ary), what key behavior defines 'N-ary — Degree N (>= 3)'?
(ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) में 'N-ary — Degree N (>= 3)' की मुख्य भूमिका या मान क्या है?)
(A) 3 Entity Types simultaneously (e.g., Supplier-Part-Project)
(B) N Entity Types bound in one joint event/transaction
(C) 1 Entity Type in 2 roles (e.g., Employee manages Employee)
(D) 2 Entity Types (e.g., Student enrolls_in Course)
Correct Answer: (B)
[EN] 'N-ary — Degree N (>= 3)' represents 'N Entity Types bound in one joint event/transaction' (Always maps to separate table carrying all N entity PKs).
[HI] 'N-ary — Degree N (>= 3)' का अर्थ/मान 'N Entity Types bound in one joint event/transaction' है (Always maps to separate table carrying all N entity PKs)।
ER Relationships: Degree of Relationship (Binary, Ternary, N-ary) — Exam FAQs
Q1: Why is `Person marries Person` Degree 1 instead of Degree 2?
`Person marries Person` संबंध की डिग्री 2 के बजाय 1 क्यों होती है?
[EN] Relationship Degree counts participating Entity TYPES, not entity instances. Since `Person` is the single Entity Type participating twice (with roles `Spouse_1` and `Spouse_2`), its degree is 1 (Unary).
[HI] संबंध की डिग्री में व्यक्तियों (Instances) की संख्या नहीं बल्कि भाग लेने वाले एंटिटी 'टाइप' गिने जाते हैं; यहाँ `Person` केवल एक ही एंटिटी टाइप है जो स्वयं से जुड़ता है, इसलिए डिग्री 1 है।
Q2: What is a 'Connection Trap' when breaking a Ternary relationship into Binary ones?
टर्नरी संबंध को बाइनरी में तोड़ने पर 'कनेक्शन ट्रैप' (Connection Trap) क्या होता है?
[EN] If you split `Supplier-Part-Project` into `Supplier-Part`, `Part-Project`, and `Supplier-Project`, joining them back can produce false phantom combinations showing a supplier delivered a part to a project that they actually never supplied there.
[HI] यदि टर्नरी संबंध को तीन बाइनरी तालिकाओं में तोड़कर दोबारा जोड़ा जाए, तो नकली/गलत जोड़े (Spurious Tuples) बन सकते हैं जिससे असल संबंध का अर्थ बिगड़ जाता है।
Q3: Can a Weak Entity participate in a Binary or Ternary relationship besides its Identifying Relationship?
क्या कोई कमजोर एंटिटी अपने पहचानकारी संबंध के अलावा अन्य बाइनरी या टर्नरी संबंधों में भाग ले सकती है?
[EN] Yes—once a Weak Entity inherits its full Primary Key from its Owner, it can freely participate in regular Binary or Ternary relationships with other entities.
[HI] हाँ, अपने मालिक से पूर्ण प्राइमरी की प्राप्त करने के बाद कमजोर एंटिटी अन्य एंटिटीज के साथ सामान्य बाइनरी या टर्नरी संबंधों में भी भाग ले सकती है।
Post a Comment
Post a Comment