Free tutorials & notes in Hindi & English · Clean code examples 🧰 मुफ़्त PDF और फ़ोटो टूल्स →
MySQL + SQL · Lesson 136

ER Diagram Symbols और Examples

Symbols क्यों ज़रूरी हैं

ER diagram standard आकार इस्तेमाल करता है ताकि कोई भी database design एक नज़र में पढ़ सके। हर symbol का fixed मतलब है — rectangle हमेशा entity, oval हमेशा attribute। ये कुछ symbols सीखना आपको कोई भी ER diagram पढ़ने और बनाने देता है।

💡 Rectangle = entity, Oval = attribute, Diamond = relationship, Lines = connections।

Rectangle — entity

  • Rectangle — सामान्य entity (Student, Book, Order)।
  • Double rectangle — weak entity, जिसे पहचानने को दूसरी entity चाहिए (जैसे Employee से जुड़ा Dependent)।

Diagram database में बनने पर entities tables बनती हैं।

Oval — attribute

  • Oval — सामान्य attribute (name, age)।
  • Underlined oval — key attribute (primary key, जैसे roll)।
  • Double oval — multivalued attribute (कई रख सकता, जैसे phone numbers)।
  • Dashed oval — derived attribute (गणना किया, जैसे date of birth से age)।

Attributes अंतिम tables में columns बनते हैं।

Diamond — relationship

  • Diamond — entities के बीच relationship (Student "enrolls" Course)।
  • Double diamond — identifying relationship, weak entity को उसके owner से जोड़ता।

Relationships database में foreign keys या link tables बनते हैं।

Lines और cardinality

Lines entities को उनके attributes और relationships से जोड़ती हैं। Relationship lines पर, cardinality चिह्नित होती है यह दिखाने को कितने जुड़ते हैं:

  • 1 : 1 — one-to-one।
  • 1 : N — one-to-many।
  • M : N — many-to-many।

कुछ diagrams अक्षरों के बजाय crow's-foot notation (कांटेदार line) इस्तेमाल करते हैं।

ख़ास आकार

Symbolमतलब
RectangleEntity
Double rectangleWeak entity
OvalAttribute
Underlined ovalKey attribute
Double ovalMultivalued attribute
Dashed ovalDerived attribute
DiamondRelationship

आम गलतियाँ

  • Oval और diamond मिलाना। Oval attribute है; diamond relationship।
  • Key underline करना भूलना। Key attribute underline होना चाहिए।
  • Cardinality labels अनदेखा करना। इनके बिना relationship प्रकार अस्पष्ट है।
  • Weak entity को single rectangle इस्तेमाल करना। Weak entities double rectangle इस्तेमाल करती हैं।

सारांश

  • ER diagrams fixed symbols इस्तेमाल करते हैं जो कोई भी पढ़ सके।
  • Rectangle = entity; double rectangle = weak entity।
  • Oval = attribute; underlined = key, double = multivalued, dashed = derived।
  • Diamond = relationship; double diamond = identifying।
  • Lines cardinality रखती हैं (1:1, 1:N, M:N)।

आगे, हिस्से समझिए ER model में, या उन्हें साथ देखिए ER diagram examples में।

अक्सर पूछे जाने वाले प्रश्न (FAQ)

ER diagram में मुख्य symbols क्या हैं?
मुख्य symbols हैं: entity को rectangle, attribute को oval, relationship को diamond, और उन्हें जोड़ती lines। double rectangle और dashed oval जैसे ख़ास आकार weak entities और derived attributes दिखाते हैं।
ER diagram में rectangle का क्या मतलब है?
Rectangle एक entity दर्शाता है — Student या Book जैसी असल-दुनिया चीज़। double rectangle weak entity दर्शाता है, जो दूसरी entity बिना पहचानी नहीं जा सकती।
ER diagram में oval का क्या मतलब है?
Oval एक attribute (entity का गुण) दर्शाता है, जैसे name या age। underline oval key attribute है, double oval multivalued है, और dashed oval derived attribute है।
ER diagram में diamond का क्या मतलब है?
Diamond entities के बीच relationship दर्शाता है, जैसे Student और Course के बीच "enrolls"। double diamond weak entity को identifying relationship दिखाता है।
ER diagram में cardinality कैसे दिखाई जाती है?
Cardinality जोड़ती lines पर दिखाई जाती है, अक्सर 1, N या M जैसे labels से, या crow's-foot notation से। यह बताती है relationship one-to-one, one-to-many, या many-to-many है।
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

अगला topicDBMS में Normalization — 1NF, 2NF, 3NF Examples आपकी प्रगति: 136 / 151 (90%) · Lesson 137 / 151 आगे बढ़ें →

यह lesson कैसा लगा?

आपकी राय से हम content और बेहतर बनाते हैं।

अपना review और सुझाव लिखें (वैकल्पिक)

Review approve होने के बाद आपका नाम और शहर इसके साथ public दिख सकते हैं। Email या phone न लिखें।

▶ CodingEasily on YouTube

Video से सीखें – आसान Hindi में

चुनी हुई video: RDBMS भाग 3 – Class XI Commerce IT

▶ Channel subscribe करें