Unknown
1. Entity:
एक entity कोई भी object, class, person or place हो सकता है। ER diagram में, एक entity को rectangles के रूप में दर्शाया जा सकता है।
एक organization के example के रूप में विचार करें-manager, product, employee, department etc को एक entity के रूप में लिया जा सकता है।
a. Weak Entity
एक entity जो एक अन्य entity पर निर्भर करती है जिसे Weak entity कहा जाता है। Weak entity का अपना कोई प्रमुख गुण नहीं है। weak entity को एक double rectangle द्वारा दर्शाया गया है।
2. Attribute
किसी Entity की property को describe करने के लिए attribute का उपयोग किया जाता है। एक attribute को represent करने के लिए Eclipse का उपयोग किया जाता है।
For example, id, age, contact number, name, etc. एक छात्र के Attribute हो सकते हैं.
a. Key Attribute
किसी entity की main characteristics का represent करने के लिए key attribute का उपयोग किया जाता है। यह एक primary key का प्रतिनिधित्व करता है।key attribute को underlined text के साथ एक ellipse द्वारा दर्शाया गया है।
b. Composite Attribute
एक Attribute जो कई other attributes से बना है, एक Composite Attribute के रूप में जानी जाती है। composite attribute को एक ellipse द्वारा दर्शाया जाता है, और उन ellipse को ellipse के साथ जोड़ा जाता है।
c. Multivalued Attribute
एक Attribute में एक से अधिक value हो सकते हैं। इन attribute को multivalued attribute के रूप में जाना जाता है। double oval का उपयोग multivalued attribute का represent करने के लिए किया जाता है।
For example,एक Student के पास एक से अधिक phne number हो सकते हैं।
d. Derived Attribute
एक Attribute जिसे other attribute से प्राप्त किया जा सकता है, एक derived attribute के रूप में जाना जाता है। इसे dashed ellipse द्वारा दर्शाया जा सकता है।
3. Relationship
entities के बीच relation का describe करने के लिए एक relationship का उपयोग किया जाता है। relationship को represent करने के लिए Diamond या rhombus का उपयोग किया जाता है।
img 9
Relationship के प्रकार इस प्रकार हैं:
a. One-to-One Relationship
जब एक entity का केवल एक instance relationship के साथ associat होता है, तो इसे One-to-One Relationship के रूप में जाना जाता है।
b. One-to-many relationship
जब left ओर entity का केवल एक instance होता है, और relationship के साथ right ओर एक entity का One-to-many instance होता है, तो यह One-to-many relationship के रूप में जाना जाता है।
c. Many-to-one relationship
जब left ओर की entity का एक से अधिक instance, और relationship के साथ right associates पर एक entity का केवल एक instance है, तो इसे many-to-one relationship के रूप में जाना जाता है।
d. Many-to-many relationship
जब left ओर entity का एक से अधिक instance, और relationship के साथ right associates पर एक entity का एक से अधिक instance तब इसे Many-to-many relationship के रूप में जाना जाता है।