PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued (ER एट्रिब्यूट्स के प्रकार: सिंपल, कम्पोजिट, सिंगल-वैल्यूड, मल्टी-वैल्यूड) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: Attributes describe entity properties from defined Domains and fall into core types: Simple/Atomic vs Composite (hierarchically divisible), and Single-Valued vs Multi-Valued (Double Ellipse), each following distinct Relational SQL mapping rules.
अध्याय सार: एट्रिब्यूट्स किसी एंटिटी की विशेषताएं दर्शाते हैं और मुख्य रूप से सिंपल/एटॉमिक बनाम कम्पोजिट (उप-भागों में विभाज्य) तथा सिंगल-वैल्यूड बनाम मल्टी-वैल्यूड (डबल अंडाकार) प्रकार के होते हैं, जिनकी SQL तालिकाओं में अलग मैपिंग होती है।
Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued: Detailed Notes & Architecture (ER एट्रिब्यूट्स के प्रकार: सिंपल, कम्पोजिट, सिंगल-वैल्यूड, मल्टी-वैल्यूड)
1. Attributes, Value Sets (Domains) & Key Notation (एट्रिब्यूट्स, डोमेन और की-नोटेशन)
[EN] Attributes are descriptive properties characterizing an Entity or Relationship (such as `Student.Name`, `Employee.Salary`, or `Enrolls.Grade`). Each simple attribute is associated with a Domain (Value Set) specifying permissible legal values—for example, integers `1..100` for `Marks` or valid ISO date strings. In Chen's ER notation, attributes appear as Ellipses (Ovals) attached to their entity rectangle, with Key Attributes underlined.
[HI] एट्रिब्यूट्स किसी एंटिटी या संबंध की विशेषताएं या गुण बताते हैं (जैसे छात्र का नाम, कर्मचारी का वेतन)। प्रत्येक एट्रिब्यूट का एक निश्चित 'डोमेन' (Domain) होता है जो उसके वैध मानों का क्षेत्र तय करता है। चेन के ER आरेख में एट्रिब्यूट्स को अंडाकार (Ellipse/Oval) से दिखाया जाता है और की-एट्रिब्यूट के नीचे रेखा खींची जाती है।
2. Simple (Atomic) vs Composite Attributes (सिंपल (एटॉमिक) बनाम कम्पोजिट एट्रिब्यूट्स)
[EN] A Simple (Atomic) Attribute cannot be meaningfully subdivided into smaller independent components—for example, `Gender`, `Age`, `PinCode`, or `CGPA`. Conversely, a Composite Attribute can be decomposed hierarchically into smaller sub-attributes that carry independent meaning—for example, `Full_Name` decomposes into `(First_Name, Middle_Name, Last_Name)`, and `Address` decomposes into `(Street, City, State, PinCode)`. In ER diagrams, composite ovals branch out into component sub-ovals; in SQL tables, only the leaf simple attributes become columns.
[HI] सिंपल (Atomic) एट्रिब्यूट को और छोटे सार्थक भागों में नहीं तोड़ा जा सकता (जैसे `Age`, `Gender`, `PinCode`)। इसके विपरीत, कम्पोजिट एट्रिब्यूट को छोटे स्वतंत्र उप-भागों में विभाजित किया जा सकता है—जैसे `Address` को `(Street, City, State, PinCode)` में और `Name` को `(First_Name, Middle_Name, Last_Name)` में। ER आरेख में मुख्य अंडाकार से छोटे अंडाकार शाखाओं की तरह निकलते हैं, और SQL तालिका बनाते समय केवल अंतिम पत्ती (Leaf) वाले एट्रिब्यूट्स कॉलम बनते हैं।
3. Single-Valued vs Multi-Valued Attributes (Double Ellipse) (सिंगल-वैल्यूड बनाम मल्टी-वैल्यूड एट्रिब्यूट्स (डबल अंडाकार))
[EN] A Single-Valued Attribute holds at most one single value for any particular entity instance—like a person's `Date_of_Birth` or `Aadhaar_No`. A Multi-Valued Attribute can hold zero, one, or multiple distinct values simultaneously for a single entity instance—like a person's `Phone_Numbers` (mobile + home + work), `Email_IDs`, or `College_Degrees`. In Chen's ER notation, Multi-Valued Attributes are drawn using a Double Ellipse (two concentric ovals).
[HI] सिंगल-वैल्यूड एट्रिब्यूट किसी एक एंटिटी के लिए एक समय में अधिकतम एक ही मान रखता है (जैसे जन्मतिथि या आधार नंबर)। वहीं मल्टी-वैल्यूड एट्रिब्यूट किसी एक एंटिटी के लिए एक साथ शून्य, एक या कई मान रख सकता है—जैसे किसी व्यक्ति के एक से अधिक `Phone_Numbers` या `Academic_Degrees`। ER आरेख में मल्टी-वैल्यूड एट्रिब्यूट को डबल अंडाकार (Double Ellipse) से दर्शाया जाता है।
4. Complex Attributes, NULL Meanings & 1NF Relational Mapping (कॉम्प्लेक्स एट्रिब्यूट्स, NULL के अर्थ और 1NF मैपिंग नियम)
[EN] Nesting Composite and Multi-Valued structures together yields a Complex Attribute—for example, `{Prev_Addresses(Phone_List{No}, Street, City)}` where an employee has multiple addresses each containing multiple phone numbers. When mapping ER diagrams to 1NF Relational Tables (which forbid multi-valued cells), every Multi-Valued Attribute MUST be extracted into a separate table `(Entity_PK, Attr_Value)` with both columns forming a composite Primary Key. Meanwhile, `NULL` in attributes signals 'Not Applicable', 'Unknown', or 'Missing'.
[HI] जब कम्पोजिट और मल्टी-वैल्यूड एट्रिब्यूट्स को आपस में मिलाया जाता है तो उसे कॉम्प्लेक्स एट्रिब्यूट कहते हैं (जैसे किसी व्यक्ति के कई पते और हर पते पर कई फोन नंबर)। फर्स्ट नॉर्मल फॉर्म (1NF) एक सेल में कई मान रखने की अनुमति नहीं देता, इसलिए SQL में बदलते समय प्रत्येक मल्टी-वैल्यूड एट्रिब्यूट के लिए एक अलग नई तालिका `(Entity_PK, Attr_Value)` बनाई जाती है।
Syntax, Formula & Technical Example (Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued)
-- Chen ER Attribute Symbols & Relational 1NF Mapping
-- ( First_Name ) ( Last_Name ) (( Phone_No )) <-- Double Ellipse = Multi-Valued
-- \ / |
-- ( Full_Name ) ---------------- [ EMPLOYEE ] --- ( _Emp_ID_ ) [Simple Key]
-- [Composite Attribute]
CREATE TABLE Employee (
Emp_ID INT PRIMARY KEY,
First_Name VARCHAR(40), -- Composite flattened to leaf columns
Last_Name VARCHAR(40)
);
CREATE TABLE Employee_Phone ( -- Multi-valued needs separate 1NF table!
Emp_ID INT REFERENCES Employee(Emp_ID),
Phone_No VARCHAR(15),
PRIMARY KEY (Emp_ID, Phone_No)
);
Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued Quick Reference & Comparison Table
| Attribute Classification | ER Notation & Defining Property | Relational SQL Mapping & Example |
|---|---|---|
| Simple (Atomic) Attribute | Single Oval; indivisible atomic domain value | Maps directly to 1 scalar column (e.g., Age, Salary) |
| Composite Attribute | Tree of Ovals; splits into meaningful sub-attributes | Flattened into leaf component columns (e.g., City, PinCode) |
| Single-Valued Attribute | Standard Oval holding at most one value per entity | Normal single-value table column (e.g., Roll_No, DOB) |
| Multi-Valued Attribute | Double Oval (Concentric Ellipse); holds 0..N values | Extracted into new separate table (PK + Attr) for 1NF |
Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued Top 20 Bilingual MCQs with Answers
Q1. In Peter Chen's ER notation, how is a Multi-Valued Attribute visually represented?
(पीटर चेन के ER आरेख नोटेशन में मल्टी-वैल्यूड एट्रिब्यूट (Multi-Valued Attribute) को कैसे दर्शाया जाता है?)
(A) Double Ellipse (two concentric ovals)
(B) Dashed single ellipse
(C) Underlined triangle
(D) Double rectangle
Correct Answer: (A)
[EN] A Double Ellipse indicates an attribute that may take a set of multiple values for a single entity instance (e.g., `Phone_Numbers`).
[HI] मल्टी-वैल्यूड एट्रिब्यूट को दोहरे अंडाकार (Double Ellipse) से दर्शाया जाता है।
Q2. Which of the following is the clearest example of a Composite Attribute?
(निम्नलिखित में से कौन सा एक कम्पोजिट एट्रिब्यूट (Composite Attribute) का सबसे स्पष्ट उदाहरण है?)
(A) `Roll_No` (integer 101)
(B) `Weight_kg` (72.5)
(C) `Address` decomposed into `House_No`, `Street`, `City`, and `PinCode`
(D) `Gender` ('M', 'F', 'O')
Correct Answer: (C)
[EN] Composite attributes break down into smaller independent sub-parts that are often queried separately (e.g., filtering by `City`).
[HI] `Address` को मकान नंबर, गली, शहर और पिनकोड जैसे छोटे अर्थपूर्ण उप-भागों में तोड़ा जा सकता है, इसलिए यह कम्पोजिट एट्रिब्यूट है।
Q3. Why must a Multi-Valued Attribute (such as `Skills` on `Employee`) be moved to a separate table when mapping an ER diagram to Relational SQL?
(ER आरेख को रिलेशनल SQL में बदलते समय `Skills` जैसे मल्टी-वैल्यूड एट्रिब्यूट के लिए एक अलग तालिका क्यों बनानी पड़ती है?)
(A) Because Composite keys cannot reference integer IDs
(B) Because Double Ellipses automatically encrypt data
(C) Because First Normal Form (1NF) requires every table cell to store a single atomic value, not lists or arrays
(D) Because SQL does not allow VARCHAR columns in primary tables
Correct Answer: (C)
[EN] Storing comma-separated `'Java,Python,SQL'` in one column violates 1NF; creating `Employee_Skill(Emp_ID, Skill)` preserves atomic relational structure.
[HI] फर्स्ट नॉर्मल फॉर्म (1NF) के अनुसार किसी तालिका के एक सेल में केवल एक ही अणु-समान (Atomic) मान रह सकता है, सूची नहीं; इसलिए अलग तालिका बनती है।
Q4. When flattening a Composite Attribute `Full_Name(First, Middle, Last)` into a SQL table `Student`, which columns appear in the resulting relation?
(कम्पोजिट एट्रिब्यूट `Full_Name(First, Middle, Last)` को SQL तालिका `Student` में बदलते समय कौन से कॉलम शामिल किए जाते हैं?)
(A) A completely separate table for `Middle` alone
(B) Four binary pointer columns
(C) Only the parent name `Full_Name`, discarding all sub-parts
(D) Only the simple leaf components: `First`, `Middle`, and `Last`
Correct Answer: (D)
[EN] Relational tables do not have nested column hierarchies; they flatten composite attributes directly into their simple leaf attributes.
[HI] रिलेशनल तालिका में नेस्टेड कॉलम नहीं होते, इसलिए केवल अंतिम पत्ती वाले सरल एट्रिब्यूट्स (`First`, `Middle`, `Last`) कॉलम के रूप में जुड़ते हैं।
Q5. Which attribute category applies to `Aadhaar_Number` or `Date_of_Birth` for a single person?
(एक व्यक्ति के संदर्भ में `Aadhaar_Number` या `Date_of_Birth` किस श्रेणी के एट्रिब्यूट हैं?)
(A) Identifying Relationship
(B) Multi-Valued Attribute
(C) Derived Composite Array
(D) Single-Valued Attribute
Correct Answer: (D)
[EN] A single entity (one person) has at most one Date of Birth and one unique Aadhaar Number.
[HI] एक व्यक्ति की जन्मतिथि और आधार संख्या केवल एक ही हो सकती है, अतः ये सिंगल-वैल्यूड एट्रिब्यूट हैं।
Q6. How is a 'Complex Attribute' formed in ER modeling?
(ER मॉडलिंग में 'कॉम्प्लेक्स एट्रिब्यूट' (Complex Attribute) कैसे बनता है?)
(A) By removing all primary keys from the database
(B) By nesting Composite and Multi-Valued attributes arbitrarily (e.g., multiple `{Address(City, Pin)}` entries)
(C) By attaching a weak entity directly to a database index
(D) By multiplying two integer simple attributes
Correct Answer: (B)
[EN] When an attribute is both multi-valued and composite (curly braces `{}` for multi-valued, parentheses `()` for composite), it is a Complex Attribute.
[HI] जब किसी एट्रिब्यूट में कम्पोजिट और मल्टी-वैल्यूड दोनों गुण मिल जाएं (जैसे एक व्यक्ति के कई पते और हर पते में शहर-पिनकोड), तो वह कॉम्प्लेक्स एट्रिब्यूट कहलाता है।
Q7. What does the 'Domain' (Value Set) of an attribute define?
(किसी एट्रिब्यूट का 'डोमेन' (Domain / Value Set) क्या परिभाषित करता है?)
(A) The number of rows returned by an OUTER JOIN
(B) The physical hard drive partition size in gigabytes
(C) The set of atomic, permissible values that may be legally assigned to that attribute
(D) The web URL hosting the organization's homepage
Correct Answer: (C)
[EN] Domains restrict valid data values—for instance, `Exam_Score` has domain `[0..100]`, preventing `-50` or `'ABC'`.
[HI] डोमेन उन सभी वैध मानों का समुच्चय है जो किसी एट्रिब्यूट को दिए जा सकते हैं (जैसे अंक के लिए 0 से 100)।
Q8. In a relational table `Emp_Phones(Emp_ID, Phone_No)` created from a multi-valued attribute, what should its Primary Key be?
(मल्टी-वैल्यूड एट्रिब्यूट से बनी नई तालिका `Emp_Phones(Emp_ID, Phone_No)` की प्राइमरी की क्या होनी चाहिए?)
(A) The composite pair `(Emp_ID, Phone_No)`
(B) `Emp_ID` alone
(C) `Phone_No` alone (always, even if two family members share one landline)
(D) No Primary Key at all
Correct Answer: (A)
[EN] `Emp_ID` alone cannot be the PK because one employee has multiple phone rows; combining `(Emp_ID, Phone_No)` uniquely identifies each employee-phone pairing.
[HI] एक कर्मचारी के कई फोन नंबर होने के कारण अकेले `Emp_ID` प्राइमरी की नहीं बन सकती; इसलिए `(Emp_ID, Phone_No)` की कम्पोजिट प्राइमरी की बनती है।
Q9. Suppose an attribute `College_Degrees` is stored for `Professor`. Why is it Multi-Valued?
(प्रोफेसर एंटिटी के लिए `College_Degrees` एट्रिब्यूट को मल्टी-वैल्यूड क्यों माना जाता है?)
(A) Because degree names are calculated from age
(B) Because the university prints degree certificates in two colors
(C) Because a single professor can simultaneously hold multiple degrees such as B.Tech, M.Tech, and Ph.D.
(D) Because every professor has zero attributes
Correct Answer: (C)
[EN] Whenever one entity instance legitimately holds a set of 0, 1, or more values for one property, that property is Multi-Valued.
[HI] क्योंकि एक ही प्रोफेसर के पास एक साथ B.Tech, M.Tech और Ph.D. जैसी कई डिग्रियां हो सकती हैं।
Q10. In SQL/ER theory, what are the three standard semantic interpretations of a `NULL` attribute value?
(SQL/ER सिद्धांत में किसी एट्रिब्यूट में `NULL` मान होने के तीन मुख्य अर्थ क्या हैं?)
(A) Deleted Table, Corrupted Disk, and Virus
(B) True, False, and Undefined Integer
(C) Zero, Negative Infinity, and Space character
(D) Not Applicable, Value Exists but is Unknown, or Not Yet Recorded/Missing
Correct Answer: (D)
[EN] For instance, `Apartment_No` may be `NULL` (Not Applicable for a standalone house) or `Phone_No` `NULL` (Unknown/Unlisted).
[HI] `NULL` का अर्थ शून्य नहीं होता, बल्कि यह दर्शाता है कि मान लागू नहीं है (Not Applicable), अज्ञात है (Unknown), या अभी दर्ज नहीं किया गया है।
Q11. Is `Pin_Code` (e.g. `302001` in India) usually treated as a Simple Attribute or Composite Attribute if queries never parse individual digits?
(यदि क्वेरी में कभी अंकों को अलग नहीं किया जाता, तो भारत में `Pin_Code` (जैसे `302001`) को सामान्यतः कैसा एट्रिब्यूट माना जाता है?)
(A) Multi-Valued Complex Attribute
(B) Derived Relationship
(C) Simple (Atomic) Attribute
(D) Weak Discriminator
Correct Answer: (C)
[EN] Whether an attribute is Simple or Composite depends on application requirements: if treated as one indivisible postal value, it is Simple.
[HI] यह उपयोग की आवश्यकता पर निर्भर करता है; यदि पिनकोड को हमेशा एक पूरी इकाई के रूप में उपयोग किया जाए, तो यह सिंपल एट्रिब्यूट है।
Q12. Can an ER Relationship (Diamond) also possess its own descriptive attributes?
(क्या ER आरेख में किसी संबंध (Relationship Diamond) के अपने स्वयं के वर्णनात्मक एट्रिब्यूट्स (Descriptive Attributes) हो सकते हैं?)
(A) Only when all attributes are NULL
(B) Yes — e.g., `Enrolls` between `Student` and `Course` can carry `Grade` or `Enrollment_Date`
(C) Only if the Relationship is a Double Diamond
(D) No — only Entity Rectangles are allowed to attach attribute ovals
Correct Answer: (B)
[EN] Descriptive attributes capture facts belonging specifically to the pairing itself (`Grade` depends on both the student and the course, not either alone).
[HI] हाँ, संबंध पर भी एट्रिब्यूट्स जुड़ सकते हैं (जैसे `Student` और `Course` के `Enrolls` संबंध पर `Grade` या `Enroll_Date`)।
Q13. If `Phone_No` is modeled as a Single-Valued attribute on `Customer`, what problem occurs when a customer buys a second SIM card they want on file?
(यदि `Customer` तालिका में `Phone_No` को सिंगल-वैल्यूड रखा जाए और ग्राहक दूसरा नंबर जुड़वाना चाहे, तो क्या समस्या होगी?)
(A) The database automatically generates a Double Diamond
(B) You cannot store the second phone number without overwriting the first or adding awkward `Phone1, Phone2` columns
(C) The customer record splits into two different customers
(D) SQL converts the primary key to NULL
Correct Answer: (B)
[EN] Rigidly adding `Phone1, Phone2, Phone3` caps capacity and complicates `WHERE` queries—demonstrating why true multi-valued properties belong in a child table.
[HI] या तो पहला नंबर बदलना पड़ेगा या `Phone1, Phone2` जैसे सीमित कॉलम जोड़ने होंगे; इसलिए वास्तविक मल्टी-वैल्यूड गुणों के लिए अलग तालिका बनाना श्रेष्ठ है।
Q14. Which attribute classification depends on whether the component parts carry independent semantic meaning?
(कौन सा एट्रिब्यूट वर्गीकरण इस बात पर निर्भर करता है कि क्या उसके उप-भागों का अपना अलग अर्थ है?)
(A) Single-Valued vs Stored
(B) Simple vs Composite
(C) Binary vs Ternary
(D) Physical vs Logical
Correct Answer: (B)
[EN] Simple attributes cannot be subdivided meaningfully, whereas Composite attributes decompose into meaningful parts (`First_Name`, `Last_Name`).
[HI] सिंपल बनाम कम्पोजिट वर्गीकरण इस बात पर निर्भर करता है कि एट्रिब्यूट को सार्थक उप-भागों में तोड़ा जा सकता है या नहीं।
Q15. In Chen's ER notation, what distinguishes the diagram representation of a Composite Attribute from a Multi-Valued Attribute?
(चेन के ER नोटेशन में कम्पोजिट एट्रिब्यूट और मल्टी-वैल्यूड एट्रिब्यूट के आरेख में क्या दृश्य अंतर होता है?)
(A) Both use identical single ovals without branches
(B) Composite attributes branch a standard oval into attached sub-ovals, while Multi-Valued attributes use a Double-bordered Oval
(C) Composite uses Dashed Ovals while Multi-Valued uses Solid Rectangles
(D) Composite uses a Double Rectangle while Multi-Valued uses a Triangle
Correct Answer: (B)
[EN] Branching sub-ovals depict composition hierarchy; concentric double borders depict multiplicity.
[HI] कम्पोजिट में एक अंडाकार से छोटे उप-अंडाकार शाखाओं के रूप में जुड़ते हैं, जबकि मल्टी-वैल्यूड में दोहरी सीमा वाला अंडाकार (Double Oval) बनता है।
Q16. Which of the following statements about ER Attributes is FALSE?
(ER एट्रिब्यूट्स के बारे में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)
(A) A Simple Attribute cannot be divided into smaller meaningful sub-parts
(B) A Single-Valued Attribute holds at most one value for a given entity instance
(C) A Multi-Valued Attribute is represented by a Double Ellipse in Chen ER notation
(D) A Composite Attribute always requires creating a completely separate relational table for each sub-attribute
Correct Answer: (D)
[EN] Composite attributes do NOT require separate tables—their simple leaf components flatten directly as columns inside the parent entity's table (unlike Multi-Valued attributes).
[HI] कम्पोजिट एट्रिब्यूट के लिए अलग तालिका नहीं बनानी पड़ती—उसके उप-भाग सीधे मूल तालिका के कॉलम बन जाते हैं (अलग तालिका मल्टी-वैल्यूड के लिए बनती है)।
Q17. Within Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued, which attribute classification directly maps to: "Single Oval; indivisible atomic domain value"?
(Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued में कौन सा Attribute Classification सीधे "Single Oval; indivisible atomic domain value" से संबंधित है?)
(A) Simple (Atomic) Attribute
(B) Single-Valued Attribute
(C) Multi-Valued Attribute
(D) Composite Attribute
Correct Answer: (A)
[EN] In Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued, 'Simple (Atomic) Attribute' handles 'Single Oval; indivisible atomic domain value' (Maps directly to 1 scalar column (e.g., Age, Salary)).
[HI] Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued में 'Simple (Atomic) Attribute' का कार्य/विवरण 'Single Oval; indivisible atomic domain value' (Maps directly to 1 scalar column (e.g., Age, Salary)) है।
Q18. Which option accurately describes 'Composite Attribute' in Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued?
(Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued के संदर्भ में 'Composite Attribute' की सही विशेषता कौन सी है?)
(A) Double Oval (Concentric Ellipse); holds 0..N values
(B) Standard Oval holding at most one value per entity
(C) Tree of Ovals; splits into meaningful sub-attributes
(D) Single Oval; indivisible atomic domain value
Correct Answer: (C)
[EN] 'Composite Attribute' provides 'Tree of Ovals; splits into meaningful sub-attributes' — key point: Flattened into leaf component columns (e.g., City, PinCode).
[HI] 'Composite Attribute' का मुख्य विवरण 'Tree of Ovals; splits into meaningful sub-attributes' है (Flattened into leaf component columns (e.g., City, PinCode))।
Q19. In Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued, identify the correct parameter for the specification: "Standard Oval holding at most one value per entity".
(Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued में "Standard Oval holding at most one value per entity" विवरण किस विकल्प के लिए सही है?)
(A) Simple (Atomic) Attribute
(B) Single-Valued Attribute
(C) Multi-Valued Attribute
(D) Composite Attribute
Correct Answer: (B)
[EN] 'Single-Valued Attribute' corresponds to 'Standard Oval holding at most one value per entity' (Normal single-value table column (e.g., Roll_No, DOB)).
[HI] 'Single-Valued Attribute' का संबंध 'Standard Oval holding at most one value per entity' (Normal single-value table column (e.g., Roll_No, DOB)) से है।
Q20. Considering Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued, what key behavior defines 'Multi-Valued Attribute'?
(Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued में 'Multi-Valued Attribute' की मुख्य भूमिका या मान क्या है?)
(A) Double Oval (Concentric Ellipse); holds 0..N values
(B) Standard Oval holding at most one value per entity
(C) Tree of Ovals; splits into meaningful sub-attributes
(D) Single Oval; indivisible atomic domain value
Correct Answer: (A)
[EN] 'Multi-Valued Attribute' represents 'Double Oval (Concentric Ellipse); holds 0..N values' (Extracted into new separate table (PK + Attr) for 1NF).
[HI] 'Multi-Valued Attribute' का अर्थ/मान 'Double Oval (Concentric Ellipse); holds 0..N values' है (Extracted into new separate table (PK + Attr) for 1NF)।
Attributes in ER Model: Simple, Composite, Single-Valued, Multi-Valued — Exam FAQs
Q1: Why don't we store Composite Attributes as a single string column in SQL?
SQL तालिका में कम्पोजिट एट्रिब्यूट (जैसे पूरा पता) को एक ही कॉलम में क्यों नहीं सहेजना चाहिए?
[EN] Storing `Address` as one unparsed string makes filtering, sorting, or grouping by `City` or `PinCode` slow and error-prone; flattening into leaf columns unlocks fast indexing and validation.
[HI] पूरे पते को एक ही कॉलम में रखने पर शहर या पिनकोड के आधार पर खोजने व सॉर्ट करने में कठिनाई होती है; उप-भागों को अलग कॉलम बनाने से इंडेक्सिंग व वैलिडेशन तेज़ होता है।
Q2: Can an attribute be both Composite and Multi-Valued?
क्या कोई एट्रिब्यूट एक साथ कम्पोजिट और मल्टी-वैल्यूड दोनों हो सकता है?
[EN] Yes—that is called a Complex Attribute. For example, a person may have multiple `Previous_Addresses` (multi-valued), each composed of `Street`, `City`, and `PinCode` (composite).
[HI] हाँ, इसे कॉम्प्लेक्स एट्रिब्यूट कहते हैं—जैसे एक व्यक्ति के कई पूर्व पते (मल्टी-वैल्यूड) और प्रत्येक पते के अंदर गली, शहर, पिनकोड (कम्पोजिट)।
Q3: Is `NULL` equivalent to zero (`0`) or empty string (`''`) in DBMS attributes?
क्या DBMS एट्रिब्यूट्स में `NULL` का मान शून्य (`0`) या खाली स्ट्रिंग (`''`) के बराबर होता है?
[EN] No. `0` is a known numeric quantity and `''` is a valid zero-length string, whereas `NULL` represents absence of a known or applicable value (`NULL = NULL` even evaluates to UNKNOWN in SQL).
[HI] नहीं, `0` एक ज्ञात संख्या है जबकि `NULL` का अर्थ अज्ञात या अनुपस्थित मान है; SQL में दो `NULL` मानों की तुलना बराबर नहीं मानी जाती।
Post a Comment
Post a Comment