Bba Second Semester
Bba Second Semester
A
UNDERLINE indicates primary key attributes.
A
DOUBLE LINES indicates total participation of an entity
set in a relationship set.
Middle name
First name
D.O.B
CONTACT
3. Draw an ER diagram showing one-to-one relationship.
LID AMOUNT
CID NAME
BORROW LOAN
CUSTOMER
AMOUNT
CID LID
NAME
Recorded
Accident
accno Date
Carry
Passenger
Age
pid
Sex
Name
Address
Name
Checks Travel
Price Name
Source
CID
Date Age
Destination
Contact-no
Belongs
Faculty
Fname Credit-hr
Post IS Employee
Duration
Pid Work
Budget Project
12.Draw an ER diagram for college registrar’s office, a college office
maintain data about the following entities
Course [Number, Title, Credit, Course-id]
Student [Sid, Name, Program]
Instructor [Number, Name, Department]
Courses are taught by instructor and student are enrolled in different
Title
courses
Program Number Credit
NAME
Sid
Course-id
Name
Taught
Department
Instructor
Teaches By university
Title Section
id-no Course-no
Name Timing
Departmen
t Semester
Age Have
Name
Children of employee
Name Id
Name Roomid
Dno
Field
Help
Nid
Shift
Nurse
16.Draw an ER diagram showing one-to-one relationship between Bank
and CEO.
Bname Level ID Name
Has Children
Mother
Pno Location
BID Price
Published
Book Publisher
by
20.
Borrows Loan
Customer
Age
Sex
Loan
Contact payment
Payment
Payment no
Date
Loan Loan
Payment
payment
SUBCLASS AND SUPER CLASS
Level
Name
Location
College
Type
#Faculty
ISA
Person
Credit-rating
Salary
ISA
Employee Customer
ISA
Office-no
Typing-speed
Officer
Teller
Typist
Station-no
SPECIALIZATION
23.Draw an ER diagram with generalization.
GENERALIZATION
Publication
Author
Price
Tech-media
Size
Pages
ISA
Book CD
Title
Price
Book
Size
Pages DISJOINT
ISA
Title Duration
Movie
Fight master
Type
OVERLAPPED
ISA