Introduction
System Analysis & Design (SAD) में E-R Diagram (Entity Relationship Diagram) एक महत्वपूर्ण modelling tool है, जिसका उपयोग data और उसके relationships को graphical form में represent करने के लिए किया जाता है।
यह database design का आधार होता है और exam में यह बहुत महत्वपूर्ण topic है।
E-R Diagram क्या है
E-R Diagram एक graphical representation है जो entities, attributes और relationships को दर्शाता है।
Simple शब्दों में:
E-R Diagram = data और उनके संबंधों का diagram
Objectives of E-R Diagram
- data structure को visualize करना
- entities और relationships को समझना
- database design को आसान बनाना
- data redundancy कम करना
- system clarity बढ़ाना
Components of E-R Diagram
1. Entity
Real-world objects जिन्हें system में represent किया जाता है।
Symbol: Rectangle
Example: Student, Employee
2. Attribute
Entity के properties या characteristics होते हैं।
Symbol: Oval
Example: name, ID, salary
3. Relationship
Entities के बीच connection को दर्शाता है।
Symbol: Diamond
Example: Student “enrolls” in Course
4. Primary Key
Unique identifier जो entity को uniquely identify करता है।
Example: Student_ID
Types of Relationships
1. One-to-One (1:1)
एक entity का एक ही related entity होता है
2. One-to-Many (1:M)
एक entity के कई related entities हो सकते हैं
3. Many-to-Many (M:N)
दोनों sides पर multiple relationships होते हैं
ExampleCollege System
- entity: Student, Course
- attribute: name, roll number
- relationship: student enrolls in course
Advantages of E-R Diagram
- data structure clear होता है
- database design आसान होता है
- communication बेहतर होता है
- redundancy कम होती है
- system visualization आसान होता है
Limitations of E-R Diagram
- बहुत बड़े systems में complex हो सकता है
- implementation details नहीं दिखाता
- dynamic behavior represent नहीं करता
Importance of E-R Diagram
- database design का foundation है
- exam में diagram based questions आते हैं
- data relationships समझने में मदद करता है
- system design को बेहतर बनाता है
Important Points
- entities, attributes, relationships मुख्य components हैं
- primary key बहुत महत्वपूर्ण है
- relationship types याद रखना जरूरी है
- ER diagram database design के लिए जरूरी है
Conclusion
E-R Diagram system modelling का एक powerful tool है, जो data और उसके relationships को clear और structured तरीके से represent करता है।
यह database design को आसान और effective बनाता है।