MySQL + SQL · Lesson 23

Entity, Relationship और Attributes

Entities, Attributes, Relationships

ये तीन ER model के core हैं। यह page हर एक को गहराई से समझाता है, attribute types और weak entities सहित।

Attributes के प्रकार

TypeमतलबExample
Simpleविभाजित नहीं हो सकताage
Compositeविभाजित हो सकता हैname → first, last
Multivaluedकई valuesphone numbers
Derivedदूसरों से calculateDOB से age
KeyUnique identifierroll_no

Strong बनाम Weak Entity

  • Strong entity: अपनी key होती है (Student)।
  • Weak entity: strong entity पर निर्भर, अपनी key नहीं (जैसे Employee का Dependent)।

सारांश

  • Entities=objects, attributes=properties, relationships=links।
  • Attribute types: simple, composite, multivalued, derived, key।
  • Weak entities strong entities पर निर्भर।
🔗

Share this topic with a friend

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

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

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