This project explores database design by creating an ER model and converting it into a relational schema. It involves entity identification, relational mapping, normalization (1NF), and various SQL join operations to ensure data consistency and integrity. The study aims to enhance database efficiency by eliminating redundancy and enforcing constraints through proper relationships and attribute management.
-
Entity-Relationship (ER) Model
- Strong Entities: Student, Course, Professor, Department
- Weak Entity: Enrollment (dependent on Student and Course)
- Relationships: 1:1 (Student & Department), 1:N (Student & Enrollment, Professor & Course, Department & Professor), N:M (Student & Course)
- Attributes: Primary Keys, Multi-valued, Derived Attributes
-
Relational Mapping
- Conversion of ER Model to Relational Schema
- Tables: Student, Course, Professor, Department, Enrollment, Student_Phone, Professor_Phone
-
Normalization (1NF)
- Multi-valued attributes (Phone Numbers) are removed into separate tables
- Ensures atomicity and avoids redundancy
-
SQL Query Implementation
- Table creation with constraints (PK, FK, Unique, CHECK)
- Insert sample data
- Various Join operations (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL OUTER JOIN, SELF JOIN, CROSS JOIN)
- Design the ER Model by identifying entities, attributes, and relationships.
- Perform Relational Mapping to define schema structure.
- Normalize the Database by applying 1NF to remove multi-valued attributes.
- Write SQL Queries to create tables, insert values, and execute joins.
- Test Queries for data retrieval and relationship verification.
- Successfully designed a relational database using ER modeling and normalization principles.
- Ensured data consistency through constraints and proper relationship mapping.
- Demonstrated SQL joins to retrieve meaningful insights from the database.
- ER to Relational Mapping - Medium
- Normal Forms in DBMS - GeeksforGeeks
- Hingorani, K., Gittens, D., & Edwards, N. (2017). Reinforcing Database Concepts by Using Entity Relationship Diagrams (ERD) and Normalization Together for Designing Robust Databases. Issues in Information Systems, 18(1), 148-155.
- Lecture 08: Mapping ER Models to Relational Models - Northeastern University
- Execute SQL scripts to create the database schema.
- Insert sample data into the tables.
- Run the provided SQL join queries to analyze relationships.
- Modify queries as needed to explore different data insights.
This project demonstrates the structured approach to database design, from conceptual modeling to relational implementation. Applying ER modeling, normalization, and SQL queries ensures an optimized, efficient, and well-structured database system.