EER Features: Aggregation and Category (Union Types) Notes in Hindi & English : EER फीचर्स: एग्रीगेशन (Aggregation) और यूनियन टाइप्स की संकल्पना और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम EER Features: Aggregation and Category (Union Types) (EER फीचर्स: एग्रीगेशन (Aggregation) और यूनियन टाइप्स की संकल्पना) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: Aggregation treats a relationship set along with its participating entities as a higher-level abstract entity so it can participate in another relationship, overcoming basic ER limitations. A Category (Union Type, denoted by 'U') models a single subclass drawn from the union of distinct, unrelated superclasses.

अध्याय सार: एग्रीगेशन (Aggregation) एक रिलेशनशिप और उससे जुड़ी एंटिटीज़ को एक उच्च-स्तरीय एंटिटी मानकर दूसरे रिलेशनशिप से जोड़ने की सुविधा देता है। वहीं कैटेगरी या यूनियन टाइप ('U') विभिन्न असंबंधित सुपरक्लासों के संग्रह (Union) से बनी एक एकल सबक्लास को दर्शाता है।

EER Features: Aggregation and Category (Union Types): Detailed Notes & Architecture (EER फीचर्स: एग्रीगेशन (Aggregation) और यूनियन टाइप्स की संकल्पना)

1. Why Basic ER Needs Aggregation (Abstraction of Relationships) (बेसिक ER की सीमा और एग्रीगेशन की आवश्यकता)

[EN] Standard ER modeling prohibits drawing a relationship directly to another relationship diamond. Suppose Employees work on Projects via a ternary or binary Works_On relationship, and Managers oversee specific Employee-Project Work combinations rather than entire projects or employees separately. Aggregation resolves this by enclosing the Works_On relationship and its participating entities inside an aggregate rectangle, treating the whole association as a single higher-level entity set connected to Manager.

[HI] सामान्य ER डायग्राम में एक रिलेशनशिप डायमंड को सीधे दूसरे रिलेशनशिप डायमंड से जोड़ने की अनुमति नहीं होती। मान लीजिए कोई Manager अलग से Employee या Project का नहीं, बल्कि किसी विशेष 'Employee-Works_On-Project' कार्य का प्रबंधन करता है। एग्रीगेशन में Works_On और उसकी एंटिटीज़ को एक बड़े बॉक्स में घेरकर एक उच्च-स्तरीय एंटिटी मान लिया जाता है जिसे फिर Manager के रिलेशनशिप से जोड़ा जा सकता है।

2. Mapping Aggregation to Relational Tables (एग्रीगेशन का रिलेशनल टेबल्स में रूपांतरण)

[EN] Mapping an aggregated ER structure creates a relation for the inner aggregated relationship (e.g., Works_On(Emp_ID, Proj_ID, Hours)) whose primary key is the composite key of its participating entities. Then, the outer relationship connecting to the aggregate (e.g., Managed_By) does NOT require a duplicate redundant table if cardinality allows, or forms a table referencing the Primary Key of the inner aggregated relationship—namely (Emp_ID, Proj_ID, Mgr_ID) with foreign keys pointing to Works_On and Manager.

[HI] एग्रीगेशन को टेबल्स में बदलने पर पहले अंदर के रिलेशनशिप (जैसे Works_On) की एक टेबल बनती है जिसकी प्राइमरी की अंदरूनी एंटिटीज़ का संयोजन होती है। इसके बाद बाहरी रिलेशनशिप की टेबल इसी अंदरूनी रिलेशनशिप की प्राइमरी की को फॉरेन की के रूप में संदर्भित करती है, जिससे अनावश्यक डेटा दोहराव के बिना सटीक संबंध बना रहता है।

3. Category (Union Types) in EER Modeling (EER में कैटेगरी (यूनियन टाइप्स - 'U') की संकल्पना)

[EN] A Category (Union Type) represents a subclass constructed from the union of two or more distinct entity types that do NOT share a common superclass—denoted by a circle containing 'U' with lines from multiple superclasses leading into the category subclass. For example, an Owner of a vehicle could be EITHER a Person, OR a Bank, OR a Company. Unlike regular inheritance where a subclass inherits ALL superclasses (intersection/AND), an instance of a Category belongs to ONLY ONE of its parent superclasses (union/OR).

[HI] कैटेगरी या यूनियन टाइप एक ऐसी सबक्लास है जो कई भिन्न सुपरक्लासों के संघ (Union) से बनती है, जिनका कोई साझा सुपरक्लास नहीं होता। इसे 'U' लिखे हुए वृत्त से दर्शाया जाता है। उदाहरणार्थ, वाहन का मालिक (Owner) या तो कोई व्यक्ति (Person) हो सकता है, या बैंक (Bank) अथवा कंपनी (Company)। यहाँ 'OR' तर्क काम करता है—अर्थात Owner का प्रत्येक इंस्टेंस इन तीनों में से किसी एक का ही सदस्य होगा।

4. Multiple Inheritance (Shared Subclass) vs Union Type & Surrogate Keys (मल्टीपल इनहेरिटेंस बनाम यूनियन टाइप एवं सरोगेट की (Surrogate Key))

[EN] Contrast a Shared Subclass (e.g., Engineering_Manager) with a Category (Owner): a Shared Subclass is an INTERSECTION (AND) where every member exists in ALL parent superclasses simultaneously and inherits all their attributes, whereas a Category is a UNION (OR) where a member exists in just ONE superclass and inherits attributes ONLY from that specific superclass. Because Person (SSN), Bank (Bank_ID), and Company (Reg_No) have completely different Primary Keys, mapping a Category to relational tables requires introducing a synthetic Surrogate Key (e.g., Owner_ID)!

[HI] शेयर्ड सबक्लास (Multiple Inheritance) 'AND' अर्थात इंटरसेक्शन पर आधारित होती है जहाँ सदस्य को सभी पैरेंट क्लासों में होना जरूरी है, जबकि यूनियन टाइप 'OR' अर्थात यूनियन पर आधारित है जहाँ सदस्य किसी एक ही पैरेंट से संबंधित होता है। चूंकि भिन्न सुपरक्लासों (Person, Bank, Company) की प्राइमरी कीज़ अलग-अलग होती हैं, इसलिए कैटेगरी को टेबल में बदलने हेतु एक नई सरोगेट की (Surrogate Key जैसे Owner_ID) बनाना आवश्यक होता है।

Syntax, Formula & Technical Example (EER Features: Aggregation and Category (Union Types))

-- Mapping Aggregation (Employee Works_On Project, Managed_By Manager)
CREATE TABLE Works_On (Emp_ID INT, Proj_ID INT, PRIMARY KEY (Emp_ID, Proj_ID));
CREATE TABLE Manages (
    Emp_ID INT, Proj_ID INT, Mgr_ID INT,
    PRIMARY KEY (Emp_ID, Proj_ID, Mgr_ID),
    FOREIGN KEY (Emp_ID, Proj_ID) REFERENCES Works_On(Emp_ID, Proj_ID)
);
-- Mapping Union Type (Owner = Person U Bank U Company via Surrogate Key Owner_ID)
CREATE TABLE Owner (Owner_ID INT PRIMARY KEY);
CREATE TABLE Person (SSN CHAR(11) PRIMARY KEY, Owner_ID INT UNIQUE REFERENCES Owner(Owner_ID));
CREATE TABLE Company (CName VARCHAR(60) PRIMARY KEY, Owner_ID INT UNIQUE REFERENCES Owner(Owner_ID));

EER Features: Aggregation and Category (Union Types) Quick Reference & Comparison Table

EER ConstructCore Logic & NotationRelational Mapping Requirement
AggregationBox around relationship + entities acting as higher entityOuter relation references composite PK of inner relation
Category (Union Type)Circle with 'U'; OR-union of distinct superclassesRequires new Surrogate Key due to differing parent PKs
Shared SubclassMultiple Inheritance (AND-intersection of superclasses)Inherits attributes/PK from all parent superclasses
Total CategoryDouble line from 'U' circle to Category subclassEvery union member of all superclasses must be in Category

EER Features: Aggregation and Category (Union Types) Top 20 Bilingual MCQs with Answers

Q1. What fundamental limitation of the standard ER model does Aggregation solve?

(एग्रीगेशन (Aggregation) मानक ER मॉडल की किस मूलभूत सीमा को दूर करता है?)

(A) Standard ER cannot directly connect a relationship set to another relationship set

(B) Standard ER forbids composite attributes

(C) Standard ER cannot depict binary 1:N relationships

(D) Standard ER cannot represent weak entities

Correct Answer: (A)

[EN] Aggregation abstracts a relationship and its entities into a composite entity so another relationship can link to it.

[HI] सामान्य ER मॉडल में एक रिलेशनशिप को सीधे दूसरे रिलेशनशिप से नहीं जोड़ा जा सकता; एग्रीगेशन इसे एक एंटिटी बॉक्स बनाकर संभव करता है।

Q2. How is Aggregation visually represented in an ER diagram?

(ER डायग्राम में एग्रीगेशन (Aggregation) को दृश्य रूप से कैसे दर्शाया जाता है?)

(A) A double-bordered diamond without entities

(B) A large rectangle enclosing the participating entity sets and their relationship diamond

(C) A dotted triangle labeled ISA

(D) A circle containing the letter 'U'

Correct Answer: (B)

[EN] The aggregate boundary rectangle groups the inner entities and relationship into one higher-level entity set.

[HI] एग्रीगेशन में संबंधित एंटिटीज़ और उनके रिलेशनशिप डायमंड को एक बड़े आयताकार बॉक्स के भीतर बंद किया जाता है।

Q3. What symbol inside a circle represents a Category (Union Type) in an EER diagram?

(EER डायग्राम में किसी कैटेगरी या यूनियन टाइप को वृत्त के भीतर किस अक्षर से दर्शाया जाता है?)

(A) o

(B) d

(C) U

(D) ISA

Correct Answer: (C)

[EN] The union symbol 'U' signifies that the subclass is a subset of the union of its multiple superclasses.

[HI] यूनियन टाइप को दर्शाने के लिए वृत्त के अंदर 'U' प्रतीक लिखा जाता है।

Q4. What is the fundamental set-theoretic difference between a Shared Subclass (Multiple Inheritance) and a Category (Union Type)?

(शेयर्ड सबक्लास (मल्टीपल इनहेरिटेंस) और कैटेगरी (यूनियन टाइप) के बीच मुख्य गणितीय अंतर क्या है?)

(A) Shared Subclass uses OR; Category uses AND

(B) Shared Subclass represents Intersection (AND) of superclasses; Category represents Union (OR) of superclasses

(C) Shared Subclass cannot inherit any attributes

(D) Category only works with a single superclass

Correct Answer: (B)

[EN] A shared subclass member must belong to ALL parents (intersection), whereas a category member belongs to at least ONE parent (union).

[HI] शेयर्ड सबक्लास में एंटिटी को सभी पैरेंट क्लासों का सदस्य (AND) होना चाहिए, जबकि कैटेगरी में वह किसी एक पैरेंट (OR) से आती है।

Q5. Why is a Surrogate Key necessary when mapping a Category (Union Type) such as Owner = Person U Bank U Company to relational tables?

(Owner = Person U Bank U Company जैसे यूनियन टाइप को रिलेशनल टेबल्स में बदलते समय सरोगेट की (Surrogate Key) क्यों आवश्यक होती है?)

(A) Because SQL prohibits foreign keys on superclasses

(B) Because Union types cannot participate in relationships

(C) Because the distinct superclasses have completely different Primary Keys (SSN, Bank_ID, Reg_No)

(D) Because surrogate keys prevent total participation

Correct Answer: (C)

[EN] Person, Bank, and Company lack a shared superclass key, so a uniform Surrogate Key (Owner_ID) links them to Owner.

[HI] भिन्न सुपरक्लासों की प्राइमरी कीज़ अलग-अलग प्रकार की होती हैं, इसलिए सभी को जोड़ने हेतु एक साझा सरोगेट की (Owner_ID) बनाई जाती है।

Q6. Suppose an Owner category is formed from Person U Bank U Company. Which attributes does a specific Owner instance representing a Bank inherit?

(यदि Owner कैटेगरी Person U Bank U Company से बनी हो, तो किसी Bank को दर्शाने वाला Owner इंस्टेंस किन गुणों को इनहेरिट करेगा?)

(A) Only the attributes of Bank (not Person or Company attributes)

(B) All attributes of Person, Bank, and Company combined

(C) Zero attributes from any parent

(D) Only attributes shared by Person and Company

Correct Answer: (A)

[EN] In a Union Type, an instance inherits attributes strictly from the single superclass to which it actually belongs.

[HI] यूनियन टाइप में कोई इंस्टेंस केवल उसी एक सुपरक्लास के गुण ग्रहण करता है जिससे वह वास्तव में संबंधित होता है।

Q7. When mapping an Aggregation structure (e.g., Employee Works_On Project, Managed_By Manager) to relational tables, what does the Manages table reference?

(एग्रीगेशन संरचना को टेबल्स में बदलने पर बाहरी रिलेशनशिप (Manages) की टेबल किसे फॉरेन की के रूप में संदर्भित करती है?)

(A) The Primary Key of the inner aggregated relationship table Works_On (Emp_ID, Proj_ID)

(B) Only Employee's name attribute

(C) Only a newly invented random string

(D) It merges into Project alone

Correct Answer: (A)

[EN] The outer relationship links to the aggregate entity, whose identifier in SQL is the PK of the inner relationship table.

[HI] बाहरी रिलेशनशिप अंदरूनी रिलेशनशिप टेबल (Works_On) की कंपोजिट प्राइमरी की को फॉरेन की के रूप में संदर्भित करता है।

Q8. In an EER diagram, what does a double line connecting the 'U' circle to the Category subclass indicate?

(EER डायग्राम में 'U' सर्कल और कैटेगरी सबक्लास को जोड़ने वाली डबल लाइन क्या सूचित करती है?)

(A) Total Category: every entity in the union of all superclasses must belong to the category

(B) Partial Category: optional membership

(C) Overlapping disjoint inheritance

(D) Weak entity identification

Correct Answer: (A)

[EN] A total category (double line) requires that the category holds the entire union of all participating superclasses.

[HI] डबल लाइन का अर्थ Total Category है, अर्थात सभी सुपरक्लासों के संपूर्ण यूनियन की प्रत्येक एंटिटी कैटेगरी में शामिल होगी।

Q9. If a Category is Partial (single line from 'U' circle to subclass), what does it imply?

(यदि कोई कैटेगरी आंशिक (Partial - सिंगल लाइन) हो, तो इसका क्या अर्थ है?)

(A) The category merges into a ternary relation

(B) All parent superclasses become weak entities

(C) Every person and bank must own a vehicle

(D) The category holds only a proper subset of the union of its superclasses

Correct Answer: (D)

[EN] In a partial category (e.g., Vehicle_Owner = Person U Company), some people or companies do not own any vehicle.

[HI] आंशिक कैटेगरी में सुपरक्लासों के यूनियन का केवल एक उपसमुच्चय (कुछ ही सदस्य) कैटेगरी में शामिल होता है।

Q10. Where is the Surrogate Key (e.g., Owner_ID) stored after creating the Category table Owner(Owner_ID)?

(कैटेगरी टेबल Owner(Owner_ID) बनाने के बाद सरोगेट की Owner_ID को और कहाँ रखा जाता है?)

(A) Stored inside the primary key of unrelated tables only

(B) Placed only in the ER diamond

(C) Added as a Foreign Key inside each participating superclass table (Person, Bank, Company)

(D) Deleted after table creation

Correct Answer: (C)

[EN] Each superclass row belonging to the category receives the Owner_ID foreign key pointing back to the Owner table.

[HI] प्रत्येक संबंधित सुपरक्लास टेबल (Person, Bank, Company) में Owner_ID को फॉरेन की के रूप में जोड़ा जाता है।

Q11. In the classic example 'Employee WORKS_ON Project' aggregated and 'USES Machinery', why isn't a plain ternary relationship sufficient?

(Employee WORKS_ON Project को एग्रीगेट करके Machinery से जोड़ने के उदाहरण में केवल एक सामान्य टर्नरी संबंध हमेशा पर्याप्त क्यों नहीं होता?)

(A) An employee can work on a project without necessarily using machinery at all times, and aggregation cleanly models relationship-on-relationship ownership

(B) Ternary relationships cannot exist in ER diagrams

(C) Binary relationships cannot have attributes

(D) Machinery cannot have a primary key

Correct Answer: (A)

[EN] Aggregation allows works_on assignments to exist independently of machinery usage and avoids redundant null-filled ternary combinations.

[HI] एग्रीगेशन से बिना मशीनरी वाले कार्य-संबंध भी स्वतंत्र रह सकते हैं और अनावश्यक डुप्लीकेट या NULL टपल्स से बचाव होता है।

Q12. Can a Category (Union Type) be defined on superclasses that do NOT have a common superclass?

(क्या कैटेगरी (यूनियन टाइप) को ऐसे सुपरक्लासों से बनाया जा सकता है जिनका कोई साझा पूर्वज (Common Superclass) न हो?)

(A) Yes, that is the primary purpose of defining a Category/Union Type

(B) Only if all parents are weak entities

(C) Only when cardinality is 1:1

(D) No, all parents must share a single root superclass

Correct Answer: (A)

[EN] Unlike standard specialization trees, categories specifically unify unrelated entity types (like Person, Bank, Company) under one role.

[HI] हाँ, यही कैटेगरी की मुख्य विशेषता है कि यह अलग-अलग असंबंधित एंटिटी प्रकारों (जैसे व्यक्ति, बैंक, कंपनी) को एक साझा भूमिका में जोड़ती है।

Q13. Which abstraction mechanism is associated with 'part-of' or 'relationship-as-entity' modeling rather than 'is-a' inheritance?

('IS-A' इनहेरिटेंस के बजाय 'रिलेशनशिप को एक उच्च एंटिटी के रूप में देखने' से कौन सी EER तकनीक जुड़ी है?)

(A) Aggregation

(B) Domain restriction

(C) Specialization

(D) Generalization

Correct Answer: (A)

[EN] Specialization and generalization express IS-A inheritance, whereas aggregation treats a relationship and its parts as an entity.

[HI] स्पेशलाइजेशन व जनरलाइजेशन IS-A इनहेरिटेंस बताते हैं, जबकि एग्रीगेशन पूरे रिलेशनशिप को एक एंटिटी मानता है।

Q14. If a Total Category is defined over two superclasses A and B, can it equivalently be viewed in reverse as a Generalization?

(यदि दो सुपरक्लासों A और B पर एक Total Category बनी हो, तो विपरीत दृष्टि से यह किसके समतुल्य दिखती है?)

(A) A partial disjoint specialization only

(B) Generalization of A and B into a superclass (if A and B share common attributes)

(C) A 1:N recursive relation

(D) A weak entity identifying relationship

Correct Answer: (B)

[EN] A total category encompasses all members of A union B, functioning much like a generalized superclass when attributes align.

[HI] पूर्ण कैटेगरी A ∪ B के सभी सदस्यों को समेटती है, जो समान गुण होने पर जनरलाइजेशन के काफी समरूप कार्य करती है।

Q15. In a relational mapping of Aggregation, if the outer relationship is 1:1 or N:1 toward the inner aggregate and participation is partial, can the outer table sometimes be eliminated?

(एग्रीगेशन मैपिंग में यदि बाहरी संबंध की कार्डिनैलिटी सही हो, तो क्या अलग बाहरी टेबल हटाकर अंदरूनी टेबल में फॉरेन की रखी जा सकती है?)

(A) Only if no Primary Key exists

(B) Only by deleting the inner relation

(C) Yes, if each inner aggregate instance relates to at most one outer entity, the outer PK can be a FK in the inner relation

(D) No, aggregation always mandates 5 tables

Correct Answer: (C)

[EN] Standard 1:N/1:1 optimization applies: if an aggregate links to at most 1 outer entity, placing that outer FK inside the inner table avoids an extra table.

[HI] हाँ, यदि अंदरूनी एग्रीगेट अधिकतम एक बाहरी एंटिटी से जुड़ा हो, तो बाहरी की प्राइमरी की को अंदरूनी टेबल में फॉरेन की बनाकर अतिरिक्त टेबल बचाई जा सकती है।

Q16. Which statement regarding Aggregation and Category (Union Types) is FALSE?

(एग्रीगेशन और कैटेगरी (यूनियन टाइप्स) के संदर्भ में कौन सा कथन असत्य (FALSE) है?)

(A) Mapping a Category typically requires introducing a surrogate key

(B) A Category is drawn using a circle containing 'U'

(C) In a Category (Union Type), every member must exist simultaneously in ALL parent superclasses

(D) Aggregation encloses an inner relationship and entities so another relationship can attach to it

Correct Answer: (C)

[EN] Simultaneous membership in all parents defines a Shared Subclass (intersection), whereas a Category (union) requires membership in only one parent.

[HI] सभी पैरेंट सुपरक्लासों में एक साथ मौजूद होना शेयर्ड सबक्लास (इंटरसेक्शन) का नियम है, कैटेगरी (यूनियन) का नहीं।

Q17. Within EER Features: Aggregation and Category (Union Types), which eer construct directly maps to: "Box around relationship + entities acting as higher entity"?

(EER Features: Aggregation and Category (Union Types) में कौन सा EER Construct सीधे "Box around relationship + entities acting as higher entity" से संबंधित है?)

(A) Aggregation

(B) Total Category

(C) Category (Union Type)

(D) Shared Subclass

Correct Answer: (A)

[EN] In EER Features: Aggregation and Category (Union Types), 'Aggregation' handles 'Box around relationship + entities acting as higher entity' (Outer relation references composite PK of inner relation).

[HI] EER Features: Aggregation and Category (Union Types) में 'Aggregation' का कार्य/विवरण 'Box around relationship + entities acting as higher entity' (Outer relation references composite PK of inner relation) है।

Q18. Which option accurately describes 'Category (Union Type)' in EER Features: Aggregation and Category (Union Types)?

(EER Features: Aggregation and Category (Union Types) के संदर्भ में 'Category (Union Type)' की सही विशेषता कौन सी है?)

(A) Circle with 'U'; OR-union of distinct superclasses

(B) Multiple Inheritance (AND-intersection of superclasses)

(C) Double line from 'U' circle to Category subclass

(D) Box around relationship + entities acting as higher entity

Correct Answer: (A)

[EN] 'Category (Union Type)' provides 'Circle with 'U'; OR-union of distinct superclasses' — key point: Requires new Surrogate Key due to differing parent PKs.

[HI] 'Category (Union Type)' का मुख्य विवरण 'Circle with 'U'; OR-union of distinct superclasses' है (Requires new Surrogate Key due to differing parent PKs)।

Q19. In EER Features: Aggregation and Category (Union Types), identify the correct parameter for the specification: "Multiple Inheritance (AND-intersection of superclasses)".

(EER Features: Aggregation and Category (Union Types) में "Multiple Inheritance (AND-intersection of superclasses)" विवरण किस विकल्प के लिए सही है?)

(A) Category (Union Type)

(B) Shared Subclass

(C) Total Category

(D) Aggregation

Correct Answer: (B)

[EN] 'Shared Subclass' corresponds to 'Multiple Inheritance (AND-intersection of superclasses)' (Inherits attributes/PK from all parent superclasses).

[HI] 'Shared Subclass' का संबंध 'Multiple Inheritance (AND-intersection of superclasses)' (Inherits attributes/PK from all parent superclasses) से है।

Q20. Considering EER Features: Aggregation and Category (Union Types), what key behavior defines 'Total Category'?

(EER Features: Aggregation and Category (Union Types) में 'Total Category' की मुख्य भूमिका या मान क्या है?)

(A) Multiple Inheritance (AND-intersection of superclasses)

(B) Circle with 'U'; OR-union of distinct superclasses

(C) Box around relationship + entities acting as higher entity

(D) Double line from 'U' circle to Category subclass

Correct Answer: (D)

[EN] 'Total Category' represents 'Double line from 'U' circle to Category subclass' (Every union member of all superclasses must be in Category).

[HI] 'Total Category' का अर्थ/मान 'Double line from 'U' circle to Category subclass' है (Every union member of all superclasses must be in Category)।

EER Features: Aggregation and Category (Union Types) — Exam FAQs

Q1: When should I choose Aggregation instead of a Ternary Relationship?

टर्नरी रिलेशनशिप के बजाय एग्रीगेशन का चयन कब करना चाहिए?

[EN] Use Aggregation when a binary relationship can exist independently without the third entity, or when attributes/managers apply specifically to the pair as a unit rather than all three entities symmetrically.

[HI] जब दो एंटिटीज़ के बीच का संबंध तीसरी एंटिटी के बिना भी स्वतंत्र रूप से अस्तित्व रख सकता हो या किसी अन्य संबंध को सीधे पहले संबंध पर निर्भर दिखाना हो, तब एग्रीगेशन चुनें।

Q2: What is the easiest way to remember the difference between Union Type and Multiple Inheritance?

यूनियन टाइप और मल्टीपल इनहेरिटेंस में अंतर याद रखने का सबसे सरल तरीका क्या है?

[EN] Multiple Inheritance (Shared Subclass) = AND (Intersection: e.g., an Engineering_Manager must be BOTH an Engineer AND a Manager). Union Type (Category) = OR (Union: an Owner is EITHER a Person OR a Bank OR a Company).

[HI] मल्टीपल इनहेरिटेंस = AND (दोनों में होना जरूरी), जबकि यूनियन टाइप = OR (तीनों में से किसी एक का सदस्य होना पर्याप्त)।

Q3: Why can't an ER diagram directly connect two relationship diamonds with a line?

ER डायग्राम में दो रिलेशनशिप डायमंड्स को सीधे एक लाइन से क्यों नहीं जोड़ा जा सकता?

[EN] Because ER syntax allows relationships only between entity sets; enclosing the first relationship inside an Aggregation rectangle promotes it to an entity-like abstraction so a second relationship can legally attach to it.

[HI] क्योंकि ER नियम के अनुसार रिलेशनशिप केवल एंटिटी सेट्स को ही जोड़ सकता है; इसलिए पहले रिलेशनशिप को एग्रीगेशन बॉक्स से एंटिटी का रूप देना पड़ता है।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)