PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) (कमजोर एंटिटी (Weak Entity): पहचानकारी संबंध और प्राथमिक कुंजी) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: A Weak Entity Set cannot form its own unique Primary Key independently and relies on Existence Dependency with an Owner Strong Entity via a Double-Diamond Identifying Relationship, Double-Line Total Participation, and a Dashed-Underlined Discriminator (Partial Key).
अध्याय सार: कमजोर एंटिटी (Weak Entity) के पास अपनी स्वतंत्र प्राइमरी की नहीं होती; यह डबल-डायमंड पहचानकारी संबंध, डबल-लाइन पूर्ण भागीदारी और डैश्ड-अंडरलाइन आंशिक कुंजी (Discriminator) द्वारा मालिक स्ट्रॉन्ग एंटिटी पर निर्भर रहती है।
Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond): Detailed Notes & Architecture (कमजोर एंटिटी (Weak Entity): पहचानकारी संबंध और प्राथमिक कुंजी)
1. Weak Entity Set & Existence Dependency (कमजोर एंटिटी सेट और अस्तित्व निर्भरता (Existence Dependency))
[EN] A Weak Entity Set is an entity set that lacks sufficient attributes to uniquely identify its instances globally on its own. Instead, it exhibits Existence Dependency on an Owner (or Identifying) Strong Entity Set: if the owner entity is deleted, its associated weak entities have no independent business meaning and must disappear too. Classic exam examples include `DEPENDENT` owned by `EMPLOYEE`, `PAYMENT` owned by `LOAN`, and `BUILDING_ROOM` owned by `BUILDING`.
[HI] कमजोर एंटिटी सेट (Weak Entity Set) वह होता है जिसके पास अपने सदस्यों को स्वतंत्र रूप से अद्वितीय पहचान देने के लिए पर्याप्त एट्रिब्यूट्स नहीं होते। इसका अस्तित्व पूरी तरह अपने मालिक (Owner/Identifying) स्ट्रॉन्ग एंटिटी पर निर्भर रहता है (Existence Dependency)—यदि मालिक को हटा दिया जाए तो कमजोर एंटिटी का अस्तित्व भी समाप्त हो जाता है; जैसे `EMPLOYEE` पर निर्भर `DEPENDENT` या `LOAN` पर निर्भर `PAYMENT`।
2. ER Diagram Notation: Double Rectangle, Double Diamond & Double Line (ER आरेख प्रतीक: डबल आयत, डबल हीरा और डबल रेखा)
[EN] Peter Chen notation uses distinct double-bordered shapes to highlight Weak Entity mechanics immediately: the Weak Entity Set itself is drawn as a Double Rectangle, the Identifying Relationship connecting it to its Owner Strong Entity is drawn as a Double Diamond, and the participation line connecting the Weak Entity to the Identifying Relationship is ALWAYS a Double Line—signifying Total Participation (every weak entity instance MUST be linked to an owner instance).
[HI] पीटर चेन के ER आरेख में कमजोर एंटिटी से जुड़े प्रतीकों को दोहरी रेखा से दर्शाया जाता है: कमजोर एंटिटी सेट के लिए डबल आयत (Double Rectangle), पहचानकारी संबंध (Identifying Relationship) के लिए डबल हीरा (Double Diamond), और कमजोर एंटिटी से इस संबंध की ओर जाने वाली रेखा हमेशा डबल लाइन (Total Participation — पूर्ण भागीदारी) होती है।
3. Discriminator (Partial Key) & Dashed Underline (डिसक्रिमिनेटर (Partial Key) और डैश्ड अंडरलाइन)
[EN] Although a Weak Entity cannot distinguish instances across the entire database (two different employees can each have a dependent named 'Riya', or two loans can both have `Payment_No = 1`), it usually has a Discriminator (or Partial Key)—a set of attributes that uniquely distinguishes weak entities belonging to the SAME owner entity. In Chen ER notation, the Discriminator attribute is marked with a Dashed (or Dotted) Underline inside its ellipse.
[HI] यद्यपि एक कमजोर एंटिटी पूरे डेटाबेस में अद्वितीय नहीं होती (दो कर्मचारियों की आश्रित बेटी का नाम 'रिया' हो सकता है, या दो अलग ऋणों की किस्त संख्या `Payment_No = 1` हो सकती है), फिर भी एक ही मालिक के भीतर अंतर करने के लिए उसके पास आंशिक कुंजी (Discriminator / Partial Key) होती है। ER आरेख में इसे अंडाकार के भीतर डैश्ड (टूटी हुई) अंडरलाइन से दिखाते हैं।
4. Relational Mapping & Composite Primary Key with CASCADE (रिलेशनल मैपिंग और CASCADE के साथ कम्पोजिट प्राइमरी की)
[EN] When mapping a Weak Entity Set to a SQL Relational Table, include all local attributes of the weak entity PLUS the Primary Key attribute(s) of the Owner Strong Entity as a Foreign Key. The Weak Entity table's full Primary Key becomes the composite pair `(Owner_Primary_Key, Discriminator)`, enforcing `FOREIGN KEY (Owner_PK) REFERENCES Owner(PK) ON DELETE CASCADE` so deleting the owner automatically purges dependent weak rows.
[HI] कमजोर एंटिटी सेट को SQL तालिका में बदलते समय उसके अपने सभी एट्रिब्यूट्स के साथ मालिक स्ट्रॉन्ग एंटिटी की प्राइमरी की को भी फॉरेन-की के रूप में शामिल किया जाता है। कमजोर तालिका की पूर्ण प्राइमरी की = `(Owner_Primary_Key, Discriminator)` का संयोजन होती है, और अस्तित्व निर्भरता लागू करने के लिए `ON DELETE CASCADE` लगाया जाता है।
Syntax, Formula & Technical Example (Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond))
-- Chen ER Weak Entity Notation & SQL Relational Mapping
-- [ EMPLOYEE ] =====<< HAS_DEP >>===== [[ DEPENDENT ]]
-- (Emp_ID) (Double Diamond) ( _ _Dep_Name_ _ ) [Dashed Underline]
-- (Relation)
CREATE TABLE Employee (Emp_ID INT PRIMARY KEY, Emp_Name VARCHAR(60));
CREATE TABLE Dependent (
Emp_ID INT,
Dep_Name VARCHAR(50), -- Discriminator (Partial Key)
Relation VARCHAR(20),
PRIMARY KEY (Emp_ID, Dep_Name), -- Composite PK = Owner_PK + Discriminator
FOREIGN KEY (Emp_ID) REFERENCES Employee(Emp_ID) ON DELETE CASCADE
);
Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) Quick Reference & Comparison Table
| Weak Entity Construct | ER Symbol & Structural Role | Relational SQL Mapping Rule |
|---|---|---|
| Weak Entity Set | Double Rectangle; lacks standalone global Primary Key | Becomes table carrying own columns plus Owner Primary Key |
| Identifying Relationship | Double Diamond linking Weak Entity to its Owner Entity | No separate table needed; collapses into Weak Entity FK |
| Discriminator (Partial Key) | Dashed-underlined Ellipse distinguishing siblings under 1 owner | Combines with Owner PK to form composite PRIMARY KEY |
| Total Participation Constraint | Double Line on Weak side ensuring every row has an Owner | Enforced via NOT NULL Foreign Key + ON DELETE CASCADE |
Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) Top 20 Bilingual MCQs with Answers
Q1. In Chen's ER notation, which geometric symbol represents a Weak Entity Set?
(चेन के ER आरेख नोटेशन में कमजोर एंटिटी सेट (Weak Entity Set) को किस प्रतीक द्वारा दर्शाया जाता है?)
(A) Dashed Ellipse
(B) Double Rectangle
(C) Single Rectangle
(D) Single Diamond
Correct Answer: (B)
[EN] A Double Rectangle highlights that the entity set cannot form a complete Primary Key without borrowing from an owner.
[HI] कमजोर एंटिटी सेट को डबल आयत (Double Rectangle) द्वारा दर्शाया जाता है।
Q2. Which symbol represents the Identifying Relationship connecting a Weak Entity to its Owner Strong Entity?
(कमजोर एंटिटी को उसकी मालिक स्ट्रॉन्ग एंटिटी से जोड़ने वाले पहचानकारी संबंध (Identifying Relationship) का प्रतीक क्या है?)
(A) Triangle
(B) Single Diamond
(C) Double Diamond
(D) Double Ellipse
Correct Answer: (C)
[EN] The Identifying Relationship borrows the owner's primary key and is uniquely drawn as a Double Diamond.
[HI] पहचानकारी संबंध (Identifying Relationship) को डबल हीरे (Double Diamond) से दर्शाया जाता है।
Q3. How is a Weak Entity's Partial Key (Discriminator) marked inside an ER diagram?
(ER आरेख में कमजोर एंटिटी की आंशिक कुंजी (Partial Key / Discriminator) को कैसे चिह्नित किया जाता है?)
(A) Underlined with a dashed (dotted) line inside an ellipse
(B) Enclosed in curly braces without any underline
(C) Underlined with a solid thick line
(D) Drawn inside a Double Rectangle
Correct Answer: (A)
[EN] Solid underline denotes a full Strong Entity Primary Key; dashed underline marks a Weak Entity's Partial Key / Discriminator.
[HI] अंडाकार (Ellipse) के अंदर नाम के नीचे डैश्ड (टूटी हुई) रेखा खींचकर आंशिक कुंजी या डिसक्रिमिनेटर को दर्शाया जाता है।
Q4. Why is the participation of a Weak Entity Set in its Identifying Relationship ALWAYS Total Participation (Double Line)?
(पहचानकारी संबंध में कमजोर एंटिटी सेट की भागीदारी हमेशा पूर्ण भागीदारी (Total Participation / डबल लाइन) क्यों होती है?)
(A) Because weak entities cannot have more than one attribute
(B) Because SQL prohibits NULL columns in Strong Entities
(C) Because every weak entity instance must exist in association with a specific owner entity to be uniquely identified
(D) Because Double Lines speed up disk I/O
Correct Answer: (C)
[EN] Without a valid owner instance supplying the inherited key part, a weak entity violates existence dependency and lacks a primary key.
[HI] प्रत्येक कमजोर एंटिटी की पहचान और अस्तित्व उसके मालिक पर निर्भर होता है; बिना मालिक के वह डेटाबेस में रह ही नहीं सकती, अतः भागीदारी हमेशा पूर्ण (100%) होती है।
Q5. How is the full Primary Key of a Weak Entity table constructed when converting an ER diagram to Relational Tables?
(ER आरेख को रिलेशनल तालिकाओं में बदलते समय कमजोर एंटिटी तालिका की पूर्ण प्राइमरी की कैसे बनाई जाती है?)
(A) Composite Key combining the Owner Entity's Primary Key plus the Weak Entity's Discriminator
(B) Using only the Weak Entity's Discriminator alone
(C) Omitting any Primary Key completely
(D) Generating an unrelated random number discarding the Owner's Key
Correct Answer: (A)
[EN] Since `Payment_No = 1` repeats across different loans, pairing `(Loan_No, Payment_No)` guarantees global uniqueness.
[HI] मालिक एंटिटी की प्राइमरी की और कमजोर एंटिटी के डिसक्रिमिनेटर को मिलाकर एक कम्पोजिट प्राइमरी की `(Owner_PK, Partial_Key)` बनाई जाती है।
Q6. Which SQL referential action best captures the 'Existence Dependency' of a Weak Entity when its Owner record is deleted?
(मालिक रिकॉर्ड हटने पर कमजोर एंटिटी की 'अस्तित्व निर्भरता' को SQL में कौन सा रेफरेंशियल एक्शन सबसे सटीक रूप से लागू करता है?)
(A) ON DELETE SET NULL
(B) NO ACTION (without NOT NULL)
(C) ON DELETE CASCADE
(D) CREATE VIEW
Correct Answer: (C)
[EN] If Employee 101 leaves or Loan 50 is purged, `ON DELETE CASCADE` removes all dependent rows cleanly; `SET NULL` would break the composite Primary Key.
[HI] `ON DELETE CASCADE` लगाने से मालिक रिकॉर्ड हटते ही उससे जुड़े सभी कमजोर रिकॉर्ड स्वतः हट जाते हैं (और प्राइमरी की में NULL की अनुमति वैसे भी नहीं होती)।
Q7. In the classic example `LOAN (Loan_No, Amount)` owning weak entity `PAYMENT (Payment_No, Date, Amt)`, why is `Payment_No` a Discriminator rather than a full Primary Key?
(`LOAN` के स्वामित्व वाली कमजोर एंटिटी `PAYMENT` में `Payment_No` पूर्ण प्राइमरी की के बजाय केवल डिसक्रिमिनेटर क्यों है?)
(A) Because integers cannot serve as Primary Keys in SQL
(B) Because `Payment_No` is a derived attribute
(C) Because banks never store more than one loan
(D) Two different loans can both have `Payment_No = 1`, `Payment_No = 2`, etc., so it only distinguishes payments within one specific loan
Correct Answer: (D)
[EN] Sequential installment numbers (1, 2, 3...) repeat across separate loans and require `Loan_No` to achieve global uniqueness.
[HI] अलग-अलग ऋणों की किस्त संख्या 1, 2, 3 समान हो सकती है, इसलिए `Payment_No` केवल एक ही ऋण के भीतर किस्तों में अंतर करता है।
Q8. Does an Identifying Relationship (Double Diamond) normally generate its own separate relational table when mapping 1:N Weak Entities?
(1:N कमजोर एंटिटी की मैपिंग करते समय क्या पहचानकारी संबंध (Double Diamond) के लिए एक अलग तीसरी तालिका बनानी पड़ती है?)
(A) No — the Weak Entity table absorbs the Owner's Primary Key directly, so no extra table is needed for the identifying relationship
(B) No — weak entities are discarded during mapping
(C) Yes — unless the owner is deleted
(D) Yes — every diamond always creates a mandatory extra table
Correct Answer: (A)
[EN] Because the weak table already carries the Owner's PK as part of its own composite PK and FK, a separate table for the identifying relationship would be completely redundant.
[HI] नहीं, कमजोर एंटिटी की तालिका स्वयं मालिक की प्राइमरी की को शामिल कर लेती है, इसलिए पहचानकारी संबंध के लिए अलग तालिका की आवश्यकता नहीं होती।
Q9. Can a Weak Entity Set participate in OTHER relationships beyond its Identifying Relationship (or even own another Weak Entity)?
(क्या एक कमजोर एंटिटी सेट अपने पहचानकारी संबंध के अलावा अन्य संबंधों में भाग ले सकता है (या किसी अन्य कमजोर एंटिटी का मालिक बन सकता है)?)
(A) Yes — weak entities can link to other entities and even act as owner for multi-level weak entities
(B) No — weak entities may only connect to exactly one diamond globally
(C) No — SQL forbids foreign keys referencing composite keys
(D) Yes, only if converted into a Derived Attribute first
Correct Answer: (A)
[EN] For example, `COURSE` -> `SECTION` (weak on Course) -> `LAB_SESSION` (weak on Section), with composite keys chaining down.
[HI] हाँ, कमजोर एंटिटी अन्य संबंधों में भाग ले सकती है और बहु-स्तरीय पदानुक्रम में किसी अन्य कमजोर एंटिटी की मालिक भी बन सकती है।
Q10. Can a Weak Entity exist WITHOUT any Discriminator (Partial Key) at all?
(क्या कोई कमजोर एंटिटी बिना किसी डिसक्रिमिनेटर (Partial Key) के भी हो सकती है?)
(A) No — SQL strictly crashes without a string discriminator
(B) Only when represented by a Single Rectangle
(C) Yes — in 1:N weak sets without any discriminator, duplicate rows stay identical
(D) Only if there is a 1:1 identifying relationship where at most one weak entity can exist per owner, or via a surrogate key
Correct Answer: (D)
[EN] In a 1:1 relationship with an owner, the owner's PK alone suffices; in 1:N, a discriminator (or surrogate) is needed to separate siblings.
[HI] 1:1 संबंध में प्रति मालिक केवल एक ही कमजोर एंटिटी होने पर मालिक की PK काफी हो सकती है, परंतु 1:N में अलग-अलग सदस्यों को पहचानने के लिए डिसक्रिमिनेटर आवश्यक है।
Q11. What is the typical cardinality ratio from the Owner Strong Entity to the Weak Entity in an Identifying Relationship?
(पहचानकारी संबंध में मालिक स्ट्रॉन्ग एंटिटी से कमजोर एंटिटी की ओर सामान्य कार्डिनैलिटी अनुपात क्या होता है?)
(A) M:N with partial participation on both sides
(B) 1:N (One Owner owns many Weak Entities, while each Weak Entity belongs to strictly 1 Owner)
(C) N:1 (Many Owners share one identical Weak Entity)
(D) 0:0 (Neither entity has instances)
Correct Answer: (B)
[EN] Each weak entity instance belongs to strictly one identifying owner instance (`1` on Owner side, `N` on Weak side), though an entity could rarely depend on multiple identifying owners.
[HI] सामान्यतः एक मालिक से कई कमजोर एंटिटीज जुड़ती हैं और प्रत्येक कमजोर एंटिटी का ठीक एक मालिक होता है, अर्थात 1:N संबंध।
Q12. What happens on the Owner Strong Entity side regarding Participation in an Identifying Relationship (e.g., `EMPLOYEE` to `DEPENDENT`)?
(पहचानकारी संबंध में मालिक स्ट्रॉन्ग एंटिटी (`EMPLOYEE`) की ओर भागीदारी (Participation) सामान्यतः कैसी होती है?)
(A) Represented by a Dashed Rectangle
(B) Always Total Participation — childless employees cannot be hired
(C) Usually Partial Participation (Single Line) — an employee might have zero dependents
(D) Always Disabled by database triggers
Correct Answer: (C)
[EN] Every `DEPENDENT` must belong to an `EMPLOYEE` (Total/Double Line), whereas an `EMPLOYEE` may have zero dependents (Partial/Single Line).
[HI] हर आश्रित (`DEPENDENT`) का कर्मचारी होना जरूरी है (Total/डबल लाइन), लेकिन बिना आश्रित वाले कर्मचारी भी हो सकते हैं, इसलिए मालिक की ओर Partial (सिंगल लाइन) होता है।
Q13. Why can't you use `ON DELETE SET NULL` on the inherited Owner Foreign Key column inside a Weak Entity table?
(कमजोर एंटिटी तालिका में मालिक की फॉरेन-की पर `ON DELETE SET NULL` नियम का उपयोग क्यों नहीं किया जा सकता?)
(A) Because Weak Entities only store integer timestamps
(B) Because the inherited Owner Key forms part of the Weak Entity's Primary Key, which cannot accept NULL values
(C) Because SET NULL automatically deletes the Owner table
(D) Because SQL does not support the keyword NULL
Correct Answer: (B)
[EN] Entity Integrity forbids `NULL` in any component of a `PRIMARY KEY`; setting `Emp_ID = NULL` inside `Dependent(Emp_ID, Dep_Name)` fails immediately.
[HI] चूंकि मालिक की फॉरेन-की कमजोर तालिका की प्राइमरी की का हिस्सा होती है और प्राइमरी की कभी `NULL` नहीं हो सकती, इसलिए `ON DELETE SET NULL` अमान्य होगा।
Q14. Which pair is a classic textbook Weak Entity and its Owner Entity?
(निम्नलिखित में से कौन सा जोड़ा कमजोर एंटिटी और उसकी मालिक एंटिटी का एक क्लासिक उदाहरण है?)
(A) Weak: `COUNTRY` (ISO_Code) | Owner: `PASSPORT` (Passport_No)
(B) Weak: `STUDENT` (Roll_No) | Owner: `LIBRARY_BOOK` (ISBN)
(C) Weak: `EMPLOYEE` (Emp_ID) | Owner: `PROJECT` (Proj_ID)
(D) Weak: `ROOM` (Room_No) | Owner: `HOTEL_BUILDING` (Building_ID)
Correct Answer: (D)
[EN] Room 101 only has unambiguous meaning relative to a specific `Building_ID`; two buildings both have Room 101.
[HI] एक ही नंबर का कमरा (`Room 101`) अलग-अलग इमारतों में हो सकता है, इसलिए `ROOM` (Building_ID पर निर्भर) कमजोर एंटिटी का उत्कृष्ट उदाहरण है।
Q15. If a Weak Entity does not use its owner's key and instead adds an artificial unique ID like `Dependent_AutoID`, what happens conceptually?
(यदि कोई कमजोर एंटिटी अपने मालिक की कुंजी उपयोग करने के बजाय अपना एक अद्वितीय `Dependent_AutoID` बना ले, तो वैचारिक रूप से क्या बदलता है?)
(A) It breaks First Normal Form
(B) It turns into a Ternary Relationship
(C) It permanently becomes a Derived Attribute
(D) In relational modeling it acquires its own Surrogate Primary Key, turning it structurally into a Strong Entity (though business existence dependency remains)
Correct Answer: (D)
[EN] Technically adding a globally unique surrogate key satisfies the Strong Entity definition mathematically, even if business rules still apply `ON DELETE CASCADE`.
[HI] तकनीकी रूप से अपना अद्वितीय सरोगेट की (Surrogate Key) जोड़ने से वह संरचनात्मक रूप से स्ट्रॉन्ग एंटिटी बन जाती है, भले ही व्यापारिक निर्भरता बनी रहे।
Q16. Which of the following statements about Weak Entity Sets is FALSE?
(कमजोर एंटिटी सेट्स के बारे में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)
(A) Weak Entity Sets are drawn using a Double Rectangle in Chen notation
(B) Weak Entity Sets always have Partial Participation in their Identifying Relationship
(C) A Weak Entity's Partial Key (Discriminator) is marked with a dashed underline
(D) A Weak Entity's Primary Key combines its Owner's Primary Key and its own Discriminator
Correct Answer: (B)
[EN] Weak Entities MUST have TOTAL Participation (Double Line) in their identifying relationship—every weak instance requires an owner.
[HI] कमजोर एंटिटी की अपने पहचानकारी संबंध में भागीदारी हमेशा पूर्ण (Total Participation) होती है, न कि आंशिक (Partial)।
Q17. Within Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond), which weak entity construct directly maps to: "Double Rectangle; lacks standalone global Primary Key"?
(Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) में कौन सा Weak Entity Construct सीधे "Double Rectangle; lacks standalone global Primary Key" से संबंधित है?)
(A) Discriminator (Partial Key)
(B) Identifying Relationship
(C) Total Participation Constraint
(D) Weak Entity Set
Correct Answer: (D)
[EN] In Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond), 'Weak Entity Set' handles 'Double Rectangle; lacks standalone global Primary Key' (Becomes table carrying own columns plus Owner Primary Key).
[HI] Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) में 'Weak Entity Set' का कार्य/विवरण 'Double Rectangle; lacks standalone global Primary Key' (Becomes table carrying own columns plus Owner Primary Key) है।
Q18. Which option accurately describes 'Identifying Relationship' in Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond)?
(Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) के संदर्भ में 'Identifying Relationship' की सही विशेषता कौन सी है?)
(A) Double Diamond linking Weak Entity to its Owner Entity
(B) Double Rectangle; lacks standalone global Primary Key
(C) Dashed-underlined Ellipse distinguishing siblings under 1 owner
(D) Double Line on Weak side ensuring every row has an Owner
Correct Answer: (A)
[EN] 'Identifying Relationship' provides 'Double Diamond linking Weak Entity to its Owner Entity' — key point: No separate table needed; collapses into Weak Entity FK.
[HI] 'Identifying Relationship' का मुख्य विवरण 'Double Diamond linking Weak Entity to its Owner Entity' है (No separate table needed; collapses into Weak Entity FK)।
Q19. In Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond), identify the correct parameter for the specification: "Dashed-underlined Ellipse distinguishing siblings under 1 owner".
(Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) में "Dashed-underlined Ellipse distinguishing siblings under 1 owner" विवरण किस विकल्प के लिए सही है?)
(A) Weak Entity Set
(B) Discriminator (Partial Key)
(C) Identifying Relationship
(D) Total Participation Constraint
Correct Answer: (B)
[EN] 'Discriminator (Partial Key)' corresponds to 'Dashed-underlined Ellipse distinguishing siblings under 1 owner' (Combines with Owner PK to form composite PRIMARY KEY).
[HI] 'Discriminator (Partial Key)' का संबंध 'Dashed-underlined Ellipse distinguishing siblings under 1 owner' (Combines with Owner PK to form composite PRIMARY KEY) से है।
Q20. Considering Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond), what key behavior defines 'Total Participation Constraint'?
(Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) में 'Total Participation Constraint' की मुख्य भूमिका या मान क्या है?)
(A) Double Diamond linking Weak Entity to its Owner Entity
(B) Double Line on Weak side ensuring every row has an Owner
(C) Dashed-underlined Ellipse distinguishing siblings under 1 owner
(D) Double Rectangle; lacks standalone global Primary Key
Correct Answer: (B)
[EN] 'Total Participation Constraint' represents 'Double Line on Weak side ensuring every row has an Owner' (Enforced via NOT NULL Foreign Key + ON DELETE CASCADE).
[HI] 'Total Participation Constraint' का अर्थ/मान 'Double Line on Weak side ensuring every row has an Owner' है (Enforced via NOT NULL Foreign Key + ON DELETE CASCADE)।
Weak Entity Sets and Identifying Relationship (Double Rectangle, Diamond) — Exam FAQs
Q1: Can a Weak Entity have its own independent Primary Key?
क्या किसी कमजोर एंटिटी की अपनी स्वतंत्र प्राइमरी की हो सकती है?
[EN] No—by definition, if an entity set has enough attributes to form a globally unique Primary Key on its own without borrowing from an owner entity, it is a Strong Entity Set, not a Weak Entity Set.
[HI] नहीं—परिभाषा के अनुसार यदि किसी एंटिटी के पास अपनी स्वतंत्र व अद्वितीय प्राइमरी की बनाने की क्षमता है, तो वह स्ट्रॉन्ग एंटिटी कहलाती है।
Q2: Why do we say a Weak Entity has 'Existence Dependency'?
कमजोर एंटिटी में 'अस्तित्व निर्भरता' (Existence Dependency) होने का क्या अर्थ है?
[EN] It means a weak record cannot meaningfully exist in the database without its corresponding parent/owner record; deleting the owner triggers deletion of its weak records.
[HI] इसका अर्थ है कि मालिक रिकॉर्ड के बिना कमजोर रिकॉर्ड का डेटाबेस में कोई स्वतंत्र अस्तित्व नहीं होता; मालिक को हटाने पर उससे जुड़े कमजोर रिकॉर्ड भी हट जाते हैं।
Q3: What is the difference between a Primary Key and a Partial Key (Discriminator)?
प्राइमरी की और पार्शियल की (Discriminator) में क्या अंतर है?
[EN] A Primary Key uniquely identifies every row across the entire entity set globally (solid underline), whereas a Partial Key only distinguishes weak rows sharing the exact same owner entity (dashed underline).
[HI] प्राइमरी की पूरे डेटाबेस में हर रिकॉर्ड को अलग पहचानती है (ठोस रेखा), जबकि पार्शियल की केवल एक ही मालिक के अधीन मौजूद कमजोर रिकॉर्ड्स के बीच अंतर करती है (डैश्ड रेखा)।
Post a Comment
Post a Comment