UNIT 1 ER Diagram
UNIT 1 ER Diagram
UNIT - 1
▪ Year
▪ Semester
▪ Marks
▪ Grade
Q3. A bank wants to develop a Bank Management System Relationships and Constraints
to efficiently store and manage information about 1. Bank - Branch Relationship:
Branches, Customers, Accounts, and Loans. Design an
o A Bank can have multiple Branches.
Entity-Relationship (ER) Diagram considering the
o Each Branch belongs to only one
following constraints and relationships.
Bank.
2. Branch - Loan Relationship:
Entities and Attributes o A Branch can offer multiple Loans.
1. Bank o Each Loan is associated with one
o Name
Branch.
o Code (Primary Key)
o Address
3. Branch - Account Relationship:
2. Branch o A Branch can maintain multiple
o Branch_ID (Primary Key) Accounts.
o Name o Each Account belongs to one Branch.
o Address
3. Customer
1. Customer - Loan Relationship:
o Cust_ID (Primary Key) o A Customer can avail multiple Loans.
• Telephone department.
• Room • Dept_ID is a foreign key in Instructor
• Dept_Name (Foreign Key referring to Department) referring to Department.
3. Course 3. Department - Course Relationship (1:N)
• Course_ID (Primary Key) • Each department offers multiple courses.
• Course_Name • Each course belongs to one department.
• Pre_Requisits 4. Instructor - Course Relationship (1:1)
• Duration • Each course is taught by a single
• Dept_Name (Foreign Key referring to Department)
instructor.
• Instructor_Name (Foreign Key referring to
Instructor) 5. Student - Course Relationship (M:N)
• A student can enroll in multiple courses.
4. Student
• Student_ID (Primary Key) • A course can have multiple students.
• Stuudent_Name
• DOB