Assignment#03

S
Sunita Milind DolAssistant Professor um Walchand Institute of Technology, Solapur

Draw E-R Diagram for a specific application.

Database System Sunita M. Dol
Page 1
HANDOUT#03
Aim:
Draw E-R Diagram for a specific application.
Theory:
Entity-Relationship Diagram
E-R diagram can express the overall logical structure of a database graphically. E-R diagrams
are simple and clear qualities that may well account in large part for the widespread use of the E-
R model.
Such a diagram consists of the following major components:
• Rectangles, which represent entity sets
• Ellipses, which represent attributes
• Diamonds, which represent relationship sets
• Lines, which link attributes to entity sets and entity sets to relationship sets
• Double ellipses, which represent multivalued attributes
• Dashed ellipses, which denote derived attributes
• Double lines, which indicate total participation of an entity in a relationship set
• Double rectangles, which represent weak entity sets
Database System Sunita M. Dol
Page 2
E-R Diagram for Banking Enterprise
Here are the major characteristics of the banking enterprise.
• The bank is organized into branches. Each branch is located in particular city and is
identified by a unique name. The bank monitors the assets of each branch.
• Bank customers are identified by their customer_id values. The bank store each
customer’s name and street and city where the customer lives. Customers may have
account and can take out the loans. A customer may be associated with a particular
banker who may act as a loan officer or personal banker for that customer.
• Bank employees are identified by their employee_id values. The bank administration
stores the name and the telephone number of each employee, the name of employee’s
dependents and employee_id number of employee’s manager. The bank also keeps track
of the employees’ start date and thus the length of employment.
Database System Sunita M. Dol
Page 3
• Bank offers two types of account- saving and checking account. Accounts can be held
by more than one customer and a customer can have more than one account. Each
account is assigned unique account number. The bank maintains a record of each
account’ balance and most recent date on which the account was accessed each customer
holding the account. Each saving account has an interest rate and overdrafts are recorded
for each checking account.
• The bank provides its customer with loans. A loan is originates at particular branch and
can be held by one or more customers. A loan is identified by a unique loan number. For
each loan, bank keeps track of the loan amount and the loan payment. Although a loan
payment number does not uniquely identify a particular payment among those for all
bank’s loan, a payment number does identify a particular payment for a specific loan.
The date and amount are recorded for each payment.
Database System Sunita M. Dol
Page 4
E-R Diagram for University Example
In university database, each instructor must have exactly one associated department. As a result,
there is a double line in E-R diagram between instructor and inst_dept, indicating total
participation of instructor in inst_dept; that is, each instructor must be associated with a
department. Further, there is an arrow from inst dept to department, indicating that each
instructor can have at most one associated department. Similarly, entity sets course and student
have double lines to relationship sets course_dept and stud_dept respectively, as also entity set
section to relationship set sec_time_slot. The first two relationships, in turn, have an arrow
pointing to the other relationship, department, while the third relationship has an arrow pointing
to time_slot.
Further, E-R diagram shows that the relationship set takes has a descriptive attribute grade, and
that each student has at most one advisor. The figure also shows that section is now a weak entity
set, with attributes sec_id, semester, and year forming the discriminator; sec_course is the
identifying relationship set relating weak entity set section to the strong entity set course.
Database System Sunita M. Dol
Page 5
Database System Sunita M. Dol
Page 6
E-R Diagram for Hospital Management System
Source: https://www.pinterest.com/pin/464011567830372544/
E-R Diagram for Hotel Management System
Database System Sunita M. Dol
Page 7
Source: https://www.pinterest.com/creately/entity-relationship-diagrams-er-diagrams/
Conclusion:
The entity-relationship (E-R) data model perceives the real world as consisting of basic objects,
called entities, and relationships among these objects. We have studied the different E-R
notations which were used to draw the E-R diagram of
• Banking Enterprise
• University
• Hospital Management System
• Hotel Management System
References:
• Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan
(McGraw Hill International Edition) sixth edition.
• Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan
(McGraw Hill International Edition) fifth edition.
• http://codex.cs.yale.edu/avi/db-book/db4/slide-dir/
• http://codex.cs.yale.edu/avi/db-book/db5/slide-dir/
• http://codex.cs.yale.edu/avi/db-book/db6/slide-dir/

Recomendados

Assignment#09 von
Assignment#09Assignment#09
Assignment#09Sunita Milind Dol
1.4K views4 Folien
Datamodels.pptx von
Datamodels.pptxDatamodels.pptx
Datamodels.pptxRamya Nellutla
37 views77 Folien
Er diagrams von
Er diagramsEr diagrams
Er diagramsVisnuDharsini
37 views29 Folien
DBMS Class 3 von
DBMS Class 3DBMS Class 3
DBMS Class 3Dr. Mazin Mohamed alkathiri
1.6K views29 Folien
Chapter 2. Concepctual design -.pptx von
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxsantosh96234
7 views37 Folien
ER modeling von
ER modelingER modeling
ER modelingDabbal Singh Mahara
162 views74 Folien

Más contenido relacionado

Similar a Assignment#03

Ais Romney 2006 Slides 15 Database Design Using The Rea von
Ais Romney 2006 Slides 15 Database Design Using The ReaAis Romney 2006 Slides 15 Database Design Using The Rea
Ais Romney 2006 Slides 15 Database Design Using The ReaSharing Slides Training
1.5K views138 Folien
Ais Romney 2006 Slides 15 Database Design Using The Rea von
Ais Romney 2006 Slides 15 Database Design Using The ReaAis Romney 2006 Slides 15 Database Design Using The Rea
Ais Romney 2006 Slides 15 Database Design Using The Reasharing notes123
6.9K views138 Folien
Ass_01_2020.pptx von
Ass_01_2020.pptxAss_01_2020.pptx
Ass_01_2020.pptxAayushSharma261
2 views30 Folien
RDBMS_Unit 01 von
RDBMS_Unit 01RDBMS_Unit 01
RDBMS_Unit 01Prashanth Shivakumar
908 views31 Folien
ER Model and other topics in DBMS von
ER Model and other topics in DBMSER Model and other topics in DBMS
ER Model and other topics in DBMSHarinarayananR2
10 views64 Folien
Chapter2 von
Chapter2Chapter2
Chapter2Bahcesehir Uni
478 views51 Folien

Similar a Assignment#03(20)

Ais Romney 2006 Slides 15 Database Design Using The Rea von sharing notes123
Ais Romney 2006 Slides 15 Database Design Using The ReaAis Romney 2006 Slides 15 Database Design Using The Rea
Ais Romney 2006 Slides 15 Database Design Using The Rea
sharing notes1236.9K views
Desigining of Database - ER Model von Ajay Chhimpa
Desigining of Database - ER ModelDesigining of Database - ER Model
Desigining of Database - ER Model
Ajay Chhimpa2.7K views
Chapter-3 Data Modeling using ER Model von Kunal Anand
Chapter-3 Data Modeling using ER ModelChapter-3 Data Modeling using ER Model
Chapter-3 Data Modeling using ER Model
Kunal Anand52 views
ER model von ShilpaDe
ER modelER model
ER model
ShilpaDe164 views
Presentation of saad on e-r diagram. von sumit gyawali
Presentation of saad on e-r diagram.Presentation of saad on e-r diagram.
Presentation of saad on e-r diagram.
sumit gyawali205 views

Más de Sunita Milind Dol

9.Joins.pdf von
9.Joins.pdf9.Joins.pdf
9.Joins.pdfSunita Milind Dol
1.7K views9 Folien
8.Views.pdf von
8.Views.pdf8.Views.pdf
8.Views.pdfSunita Milind Dol
1.7K views5 Folien
7. Nested Subqueries.pdf von
7. Nested Subqueries.pdf7. Nested Subqueries.pdf
7. Nested Subqueries.pdfSunita Milind Dol
1.7K views9 Folien
6. Aggregate Functions.pdf von
6. Aggregate Functions.pdf6. Aggregate Functions.pdf
6. Aggregate Functions.pdfSunita Milind Dol
1.7K views12 Folien
5. Basic Structure of SQL Queries.pdf von
5. Basic Structure of SQL Queries.pdf5. Basic Structure of SQL Queries.pdf
5. Basic Structure of SQL Queries.pdfSunita Milind Dol
1.7K views64 Folien
4. DML.pdf von
4. DML.pdf4. DML.pdf
4. DML.pdfSunita Milind Dol
1.7K views17 Folien

Más de Sunita Milind Dol(20)

Último

Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ... von
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...AltinKaradagli
9 views16 Folien
Stone Masonry and Brick Masonry.pdf von
Stone Masonry and Brick Masonry.pdfStone Masonry and Brick Masonry.pdf
Stone Masonry and Brick Masonry.pdfMohammed Abdullah Laskar
21 views6 Folien
Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa... von
Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa...Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa...
Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa...ijseajournal
5 views13 Folien
Update 42 models(Diode/General ) in SPICE PARK(DEC2023) von
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Tsuyoshi Horigome
23 views16 Folien
Dynamics of Hard-Magnetic Soft Materials von
Dynamics of Hard-Magnetic Soft MaterialsDynamics of Hard-Magnetic Soft Materials
Dynamics of Hard-Magnetic Soft MaterialsShivendra Nandan
15 views32 Folien
fakenews_DBDA_Mar23.pptx von
fakenews_DBDA_Mar23.pptxfakenews_DBDA_Mar23.pptx
fakenews_DBDA_Mar23.pptxdeepmitra8
14 views34 Folien

Último(20)

Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ... von AltinKaradagli
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...
AltinKaradagli9 views
Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa... von ijseajournal
Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa...Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa...
Taking out the Trash (And the Recyclables]: RFID and the Handling of Municipa...
ijseajournal5 views
Update 42 models(Diode/General ) in SPICE PARK(DEC2023) von Tsuyoshi Horigome
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
fakenews_DBDA_Mar23.pptx von deepmitra8
fakenews_DBDA_Mar23.pptxfakenews_DBDA_Mar23.pptx
fakenews_DBDA_Mar23.pptx
deepmitra814 views
MSA Website Slideshow (16).pdf von msaucla
MSA Website Slideshow (16).pdfMSA Website Slideshow (16).pdf
MSA Website Slideshow (16).pdf
msaucla64 views
An approach of ontology and knowledge base for railway maintenance von IJECEIAES
An approach of ontology and knowledge base for railway maintenanceAn approach of ontology and knowledge base for railway maintenance
An approach of ontology and knowledge base for railway maintenance
IJECEIAES12 views
Machine Element II Course outline.pdf von odatadese1
Machine Element II Course outline.pdfMachine Element II Course outline.pdf
Machine Element II Course outline.pdf
odatadese18 views
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L... von Anowar Hossain
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
Anowar Hossain12 views
_MAKRIADI-FOTEINI_diploma thesis.pptx von fotinimakriadi
_MAKRIADI-FOTEINI_diploma thesis.pptx_MAKRIADI-FOTEINI_diploma thesis.pptx
_MAKRIADI-FOTEINI_diploma thesis.pptx
fotinimakriadi7 views
NEW SUPPLIERS SUPPLIES (copie).pdf von georgesradjou
NEW SUPPLIERS SUPPLIES (copie).pdfNEW SUPPLIERS SUPPLIES (copie).pdf
NEW SUPPLIERS SUPPLIES (copie).pdf
georgesradjou15 views

Assignment#03

  • 1. Database System Sunita M. Dol Page 1 HANDOUT#03 Aim: Draw E-R Diagram for a specific application. Theory: Entity-Relationship Diagram E-R diagram can express the overall logical structure of a database graphically. E-R diagrams are simple and clear qualities that may well account in large part for the widespread use of the E- R model. Such a diagram consists of the following major components: • Rectangles, which represent entity sets • Ellipses, which represent attributes • Diamonds, which represent relationship sets • Lines, which link attributes to entity sets and entity sets to relationship sets • Double ellipses, which represent multivalued attributes • Dashed ellipses, which denote derived attributes • Double lines, which indicate total participation of an entity in a relationship set • Double rectangles, which represent weak entity sets
  • 2. Database System Sunita M. Dol Page 2 E-R Diagram for Banking Enterprise Here are the major characteristics of the banking enterprise. • The bank is organized into branches. Each branch is located in particular city and is identified by a unique name. The bank monitors the assets of each branch. • Bank customers are identified by their customer_id values. The bank store each customer’s name and street and city where the customer lives. Customers may have account and can take out the loans. A customer may be associated with a particular banker who may act as a loan officer or personal banker for that customer. • Bank employees are identified by their employee_id values. The bank administration stores the name and the telephone number of each employee, the name of employee’s dependents and employee_id number of employee’s manager. The bank also keeps track of the employees’ start date and thus the length of employment.
  • 3. Database System Sunita M. Dol Page 3 • Bank offers two types of account- saving and checking account. Accounts can be held by more than one customer and a customer can have more than one account. Each account is assigned unique account number. The bank maintains a record of each account’ balance and most recent date on which the account was accessed each customer holding the account. Each saving account has an interest rate and overdrafts are recorded for each checking account. • The bank provides its customer with loans. A loan is originates at particular branch and can be held by one or more customers. A loan is identified by a unique loan number. For each loan, bank keeps track of the loan amount and the loan payment. Although a loan payment number does not uniquely identify a particular payment among those for all bank’s loan, a payment number does identify a particular payment for a specific loan. The date and amount are recorded for each payment.
  • 4. Database System Sunita M. Dol Page 4 E-R Diagram for University Example In university database, each instructor must have exactly one associated department. As a result, there is a double line in E-R diagram between instructor and inst_dept, indicating total participation of instructor in inst_dept; that is, each instructor must be associated with a department. Further, there is an arrow from inst dept to department, indicating that each instructor can have at most one associated department. Similarly, entity sets course and student have double lines to relationship sets course_dept and stud_dept respectively, as also entity set section to relationship set sec_time_slot. The first two relationships, in turn, have an arrow pointing to the other relationship, department, while the third relationship has an arrow pointing to time_slot. Further, E-R diagram shows that the relationship set takes has a descriptive attribute grade, and that each student has at most one advisor. The figure also shows that section is now a weak entity set, with attributes sec_id, semester, and year forming the discriminator; sec_course is the identifying relationship set relating weak entity set section to the strong entity set course.
  • 5. Database System Sunita M. Dol Page 5
  • 6. Database System Sunita M. Dol Page 6 E-R Diagram for Hospital Management System Source: https://www.pinterest.com/pin/464011567830372544/ E-R Diagram for Hotel Management System
  • 7. Database System Sunita M. Dol Page 7 Source: https://www.pinterest.com/creately/entity-relationship-diagrams-er-diagrams/ Conclusion: The entity-relationship (E-R) data model perceives the real world as consisting of basic objects, called entities, and relationships among these objects. We have studied the different E-R notations which were used to draw the E-R diagram of • Banking Enterprise • University • Hospital Management System • Hotel Management System References: • Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan (McGraw Hill International Edition) sixth edition. • Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan (McGraw Hill International Edition) fifth edition. • http://codex.cs.yale.edu/avi/db-book/db4/slide-dir/ • http://codex.cs.yale.edu/avi/db-book/db5/slide-dir/ • http://codex.cs.yale.edu/avi/db-book/db6/slide-dir/