What is Logical Database Design?
Logical database design is the process of organizing data into structured tables and relationships (without worrying about physical storage).
It ensures data is stored efficiently, without redundancy, and with integrity.
Steps in Logical Database Design
1. Identify Entities
-
Based on requirements, determine the objects we need to store data about.
-
Example: In a university system → Student, Course, Instructor, Enrollment.
2. Identify Attributes
3. Identify Relationships
4. Map ER Model to Tables
5. Define Primary & Foreign Keys
6. Apply Normalization
7. Check Integrity Rules
-
Entity Integrity → Every table has a primary key.
-
Referential Integrity → Foreign keys match valid primary keys.
-
Domain Integrity → Attribute values must be valid (e.g., age > 0).
Example: University Database
Final Logical Schema (simplified):
-
STUDENT(StudentID PK, Name, DOB, Email)
-
COURSE(CourseID PK, CourseName, Credits)
-
INSTRUCTOR(InstructorID PK, Name, Department)
-
ENROLLMENT(StudentID FK, CourseID FK, Grade)
Here:
-
StudentID uniquely identifies a student.
-
CourseID uniquely identifies a course.
-
InstructorID uniquely identifies an instructor.
-
ENROLLMENT is a relationship table connecting students and courses.
Summary
-
Logical design = convert ER model into normalized tables.
-
Focus on entities, attributes, relationships, keys, integrity rules.
-
Goal = structured, efficient, and consistent database.