Task2 Prado PC5
Task2 Prado PC5
2. Uses of ER Diagram:
- Database Design: ER diagrams help in designing the structure of a database by defining entities, their
attributes, and how they relate.
- Entities: Represent objects, concepts, or things in the database (e.g., "Customer" or "Product").
- Relationships: Connections between entities, indicating how they are associated (e.g., "Customer
buys Product").
- Cardinality: Indicates the number of instances in one entity related to another (e.g., one-to-one, one-
to-many, or many-to-many).
- Conceptual Data Model: Provides a high-level view of the data without going into technical details. It
focuses on concepts and relationships. Example: An ER diagram representing "Library System" with
entities like "Book" and "Borrower."
- Logical Data Model: Represents the data at a more detailed level, including attributes, keys, and
relationships. It is independent of the specific database management system. Example: Adding attributes
like "Author" and "ISBN" to the "Book" entity in the Library System ER diagram.
- Physical Data Model: Defines how the data will be stored and structured in a specific database
system. It includes details like data types, indexing, and storage optimization. Example: Specifying table
structures and constraints for "Book" and "Borrower" in a MySQL database.
ER Diagram for Student-University Setup