Advanced SQL
Advanced SQL
management system
Unit – 2 DATABASE DESIGN
• Physical Database Design (Like indexing) and external design (like views)
• The Entity Relationship Model is a model for identifying entities (like student, car
or company) to be represented in the database and representation of how those
entities are related. The ER data model specifies enterprise schema that
represents the overall logical structure of a database graphically.
15/03/2025 MDBMS Ms.Sangeetha Priya.B , AP/CSE IOT 2
Why Use ER Diagrams In DBMS
• ER Model is used to model the logical view of the system from a data
perspective which consists of these symbols:
• Rectangles: Rectangles represent Entities in the ER Model.
• Lines: Lines represent attributes to entities and entity sets with other
relationship types.
• 1. Total Participation – Each entity in the entity set must participate in the relationship.
If each student must enroll in a course, the participation of students will be total. Total
participation is shown by a double line in the ER diagram.
• 2. Partial Participation – The entity in the entity set may or may NOT participate in the
relationship. If some courses are not enrolled by any of the students, the participation in
the course will be partial.
• The diagram depicts the ‘Enrolled in’ relationship set with Student Entity set having total
participation and Course Entity set having partial participation.
15/03/2025 MDBMS Ms.Sangeetha Priya.B , AP/CSE IOT 30
15/03/2025 MDBMS Ms.Sangeetha Priya.B , AP/CSE IOT 31
How to Draw ER Diagram?
• The very first step is Identifying all the Entities, and place them in a Rectangle, and labeling
them accordingly.
• The next step is to identify the relationship between them and place them accordingly using
the Diamond, and make sure that, Relationships are not connected to each other.