SlideShare a Scribd company logo
2
Most read
7
Most read
8
Most read
Case Study - 1
Complete Example for E/R schema: 
Specifications (1/3) 
1. In an educational institute, there are several 
departments and students belong to one of them. 
Each department has a unique department number, a 
name, a location, phone number and is headed by a 
professor. 
2. Professors have a unique employee Id, name, phone 
number. We like to keep track of the following details 
regarding students: name, unique roll number, sex, 
phone number, date of birth, age and one or more 
email addresses.
Complete Example for E/R schema: 
Specifications (2/3) 
3. Students have a local address consisting of the hostel 
name and the room number. They also have home 
address consisting of house number, street, city and 
PIN. It is assumed that all students reside in the 
hostels. 
4. A course taught in a semester of the year is called a 
section. There can be several sections of the same 
course in a semester; these are identified by the 
section number. Each section is taught by a different 
professor and has its own timings and a room to meet.
Complete Example for E/R schema: 
Specifications (3/3) 
5. Students enroll for several sections in a semester. Each 
course has a name, number of credits and the department 
that offers it. A course may have other courses as pre-requisites 
i.e, courses to be completed before it can be 
enrolled in. 
6. Professors also undertake research projects. These are 
sponsored by funding agencies and have a specific start 
date, end date and amount of money given. More than one 
professor can be involved in a project. Also a professor 
may be simultaneously working on several projects. A 
project has a unique projectId.
Entities -Student
Entities –Department and Course
Entities –Professor, Project and 
Sections
E/R Diagram showing relationships
Case Study - 2
Example COMPANY Database 
• Requirements of the Company 
(oversimplified for illustrative purposes) 
– The company is organized into 
DEPARTMENTs. Each department has a 
name, number and an employee who manages 
the department. We keep track of the start date 
of the department manager. 
– Each department controls a number of 
PROJECTs. Each project has a name, number 
and is located at a single location.
Example COMPANY Database (Cont.) 
– We store each EMPLOYEE’s social security 
number, address, salary, sex, and birthdate. 
Each employee works for one department but 
may work on several projects. We keep track of 
the number of hours per week that an employee 
currently works on each project. We also keep 
track of the direct supervisor of each employee. 
– Each employee may have a number of 
DEPENDENTs. For each dependent, we keep 
track of their name, sex, birthdate, and 
relationship to employee.
An ER schema diagram for the COMPANY database.
Exercises
Exercise - 1 
• A university registrar’s office maintains data about the following 
entities: 
– (a) Courses, including course number, title , credits, syllabus, 
and prerequisites; 
– (b) Course offerings, including course number, year, 
semester, section number, instructor's, timings, and 
classroom; 
– (c) Students, including student-id, name, and program; and 
– (d) Instructors, including identification number, name, 
department, and title. Further, the enrollment of students in 
courses and grades awarded to students in each course they 
are enrolled for must be appropriately modeled. 
Construct an E-R diagram for the registrar’s office. Document 
all assumptions that you make about the mapping 
constraints.
Exercise - 2 
• Construct an E-R diagram for a car-insurance 
company whose customers own one of more cars 
each. Each car has associated with it zero to any 
number of recorded accidents. 
• Construct an E-R diagram for a hospital with a 
set of patients and set of medical doctors. 
Associate with each patient a log of the various 
tests and examinations conducted.

More Related Content

PPTX
CART Algorithm.pptx
PPTX
Diabetes Mellitus
PPTX
Hypertension
PPTX
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
PPTX
Power Point Presentation on Artificial Intelligence
PDF
Caça palavras - Bullying
PPTX
CART Algorithm.pptx
Diabetes Mellitus
Hypertension
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
Power Point Presentation on Artificial Intelligence
Caça palavras - Bullying

What's hot (20)

PDF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
PPTX
Three Address code
PPT
Rad model
PPT
Bellman Ford's Algorithm
PPTX
Constructor in java
PPTX
Coin change Problem (DP & GREEDY)
DOCX
College admission system
PPTX
Procedural vs. object oriented programming
PDF
Project presentation on Phone Book
PPTX
Control structures in java
DOC
Time and space complexity
DOC
Airline Reservation Software Requirement Specification
PPTX
Dag representation of basic blocks
PPTX
Mapping Cardinalities
PPT
ER-Model-ER Diagram
PPT
Er to tables
PPTX
And or graph
PPTX
PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING
DOC
Dbms lab questions
PPTX
Translation of expression(copmiler construction)
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Three Address code
Rad model
Bellman Ford's Algorithm
Constructor in java
Coin change Problem (DP & GREEDY)
College admission system
Procedural vs. object oriented programming
Project presentation on Phone Book
Control structures in java
Time and space complexity
Airline Reservation Software Requirement Specification
Dag representation of basic blocks
Mapping Cardinalities
ER-Model-ER Diagram
Er to tables
And or graph
PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING
Dbms lab questions
Translation of expression(copmiler construction)
Ad

Viewers also liked (12)

PPT
Dbms ii mca-ch3-er-model-2013
DOCX
Airlines Database Design
PDF
Mapping rules
PPTX
Online Airway Reservation System
PPTX
Flight reservation and ticketing system ppt
DOC
Project of Airline booking system
PPT
Introduction to airline reservation systems
PPTX
How to Draw an Effective ER diagram
PPT
Air ticket reservation system presentation
DOC
Airline reservation system documentation
PPT
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
PPT
Entity relationship diagram (erd)
Dbms ii mca-ch3-er-model-2013
Airlines Database Design
Mapping rules
Online Airway Reservation System
Flight reservation and ticketing system ppt
Project of Airline booking system
Introduction to airline reservation systems
How to Draw an Effective ER diagram
Air ticket reservation system presentation
Airline reservation system documentation
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
Entity relationship diagram (erd)
Ad

Similar to 4. case study (20)

PPTX
Ass_01_2020.pptx
PDF
University management system (Credit Hour System)
PDF
RDBMS ERD Examples
PPTX
coordinate better to learn PPT IT DEPT-Tier II SAR.pptx
PPTX
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
PDF
TLE-IA-6_module-6_Constructing-A-Project-Plan.pdf
PDF
Summer training guidlines
PDF
PPA Loneck final
PPTX
Qld peek 2019
PDF
HUM 3970 Spring 2016
PPT
Student Record Management presentation
PDF
Math 221 term 1005 syllabus
DOCX
HND Assignment Brief Session Sept.docx
DOCX
Walker-Individual Unit Plan
PDF
1. University Example.pdf
PPT
PGCPS Career Academy Internships
DOCX
Management Information System Practice Orientations abou.docx
PDF
COPR_COPA_Computer_Programmer_Analyst_2013
DOCX
Pths graduation project 2011
PDF
Em 501 introduction to business-course outline
Ass_01_2020.pptx
University management system (Credit Hour System)
RDBMS ERD Examples
coordinate better to learn PPT IT DEPT-Tier II SAR.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
TLE-IA-6_module-6_Constructing-A-Project-Plan.pdf
Summer training guidlines
PPA Loneck final
Qld peek 2019
HUM 3970 Spring 2016
Student Record Management presentation
Math 221 term 1005 syllabus
HND Assignment Brief Session Sept.docx
Walker-Individual Unit Plan
1. University Example.pdf
PGCPS Career Academy Internships
Management Information System Practice Orientations abou.docx
COPR_COPA_Computer_Programmer_Analyst_2013
Pths graduation project 2011
Em 501 introduction to business-course outline

More from khoahuy82 (19)

PPTX
13. case study
PPTX
8. sql
PPTX
20. quiz
PPTX
1. intro
PPTX
19. quiz
PPTX
7. transaction mang
PPTX
6. normalization
PPTX
5. relational structure
PPT
PPT
PPT
PPT
PPT
PPT
PPT
PPT
Cac phuong phap tim kiem tham do
PPT
07 2 chapter7-cross-section diagrams in 3 dimentions part 2-2
PPT
01 begin & chapter1
PPT
06 chuong 6 moi truong ngam
13. case study
8. sql
20. quiz
1. intro
19. quiz
7. transaction mang
6. normalization
5. relational structure
Cac phuong phap tim kiem tham do
07 2 chapter7-cross-section diagrams in 3 dimentions part 2-2
01 begin & chapter1
06 chuong 6 moi truong ngam

Recently uploaded (20)

PDF
Foundation of Data Science unit number two notes
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PDF
Introduction to Business Data Analytics.
PDF
Lecture1 pattern recognition............
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPT
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
Fluorescence-microscope_Botany_detailed content
PDF
Launch Your Data Science Career in Kochi – 2025
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPT
Miokarditis (Inflamasi pada Otot Jantung)
Foundation of Data Science unit number two notes
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
Introduction to Business Data Analytics.
Lecture1 pattern recognition............
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
Major-Components-ofNKJNNKNKNKNKronment.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Introduction to Knowledge Engineering Part 1
Supervised vs unsupervised machine learning algorithms
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Fluorescence-microscope_Botany_detailed content
Launch Your Data Science Career in Kochi – 2025
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
Miokarditis (Inflamasi pada Otot Jantung)

4. case study

  • 2. Complete Example for E/R schema: Specifications (1/3) 1. In an educational institute, there are several departments and students belong to one of them. Each department has a unique department number, a name, a location, phone number and is headed by a professor. 2. Professors have a unique employee Id, name, phone number. We like to keep track of the following details regarding students: name, unique roll number, sex, phone number, date of birth, age and one or more email addresses.
  • 3. Complete Example for E/R schema: Specifications (2/3) 3. Students have a local address consisting of the hostel name and the room number. They also have home address consisting of house number, street, city and PIN. It is assumed that all students reside in the hostels. 4. A course taught in a semester of the year is called a section. There can be several sections of the same course in a semester; these are identified by the section number. Each section is taught by a different professor and has its own timings and a room to meet.
  • 4. Complete Example for E/R schema: Specifications (3/3) 5. Students enroll for several sections in a semester. Each course has a name, number of credits and the department that offers it. A course may have other courses as pre-requisites i.e, courses to be completed before it can be enrolled in. 6. Professors also undertake research projects. These are sponsored by funding agencies and have a specific start date, end date and amount of money given. More than one professor can be involved in a project. Also a professor may be simultaneously working on several projects. A project has a unique projectId.
  • 8. E/R Diagram showing relationships
  • 10. Example COMPANY Database • Requirements of the Company (oversimplified for illustrative purposes) – The company is organized into DEPARTMENTs. Each department has a name, number and an employee who manages the department. We keep track of the start date of the department manager. – Each department controls a number of PROJECTs. Each project has a name, number and is located at a single location.
  • 11. Example COMPANY Database (Cont.) – We store each EMPLOYEE’s social security number, address, salary, sex, and birthdate. Each employee works for one department but may work on several projects. We keep track of the number of hours per week that an employee currently works on each project. We also keep track of the direct supervisor of each employee. – Each employee may have a number of DEPENDENTs. For each dependent, we keep track of their name, sex, birthdate, and relationship to employee.
  • 12. An ER schema diagram for the COMPANY database.
  • 14. Exercise - 1 • A university registrar’s office maintains data about the following entities: – (a) Courses, including course number, title , credits, syllabus, and prerequisites; – (b) Course offerings, including course number, year, semester, section number, instructor's, timings, and classroom; – (c) Students, including student-id, name, and program; and – (d) Instructors, including identification number, name, department, and title. Further, the enrollment of students in courses and grades awarded to students in each course they are enrolled for must be appropriately modeled. Construct an E-R diagram for the registrar’s office. Document all assumptions that you make about the mapping constraints.
  • 15. Exercise - 2 • Construct an E-R diagram for a car-insurance company whose customers own one of more cars each. Each car has associated with it zero to any number of recorded accidents. • Construct an E-R diagram for a hospital with a set of patients and set of medical doctors. Associate with each patient a log of the various tests and examinations conducted.