SlideShare una empresa de Scribd logo
1 de 14
Descargar para leer sin conexión
ERD Examples
• a professor teaches zero, one or many classes
and a class is taught by one professor
• a course may generate zero, one or many
classes and a class comes from one course
• a class is held in one room but a room has
many classesmany classes
• an invoice is written by one salesrep but a
salesrep writes many invoices
• a vendor sells many products but a product is
bought from one vendor
• an invoice has one or many products and a
product is found on zero, one or manyproduct is found on zero, one or many
invoices
• Customers identified by a CUSTOMER-NAME
and with an ADDRESS buy items, items are
identified by an ITEM-NO and have a COLOR.
The QTYBOUGHT of an item by each customer
is recorded. An item can be bought by many
customers.customers.
• Departments are identified by a DEPT-NO and
have a budget. A department can manage
many projects, but each project is managed by
one department. Projects are identified by a
PROJECT-NO and have a START-DATE.
• An order with a unique ORDER-NO and
ORDER-DATE can be made for any number of
parts (identified by ITEM-NO and with a
COLOR). QTY-ORDERED is the amount of each
part ordered. Each order is made to one
supplier (who has a unique SUPPLIER-NAMEsupplier (who has a unique SUPPLIER-NAME
and one ADDRESS).
• A fault occurs on one item of equipment. A
logbook contains FAULT-NO, FAULT-DATE and
FAULT-DESCRIPTION. Each item of equipment
has a unique EUIP-NO and an EQUIP-
DESCRIPTION and TYPE. Each such item is
located in one building, which has a uniquelocated in one building, which has a unique
BUILDING-NAME and one ADDRESS.
• A student (with STUDENT-ID, ADDRESS, and
SURNAME) takes any number of subjects
which have a unique SUBJECT-NAME and a
SUBJECTDESCRIPTION. The student is enrolled
in a major that has a unique MAJORNAME and
LENGTH. The date on which a student startedLENGTH. The date on which a student started
a major is recorded. A subject is taught by one
teacher, who is identified by a TEACHER-ID
and has a TEACHER-ADDRESS.
• A painter can paint many paintings; each
paining is painted by one painter. A gallery can
have many paintings. A painting can be
exhibited by a gallery.
• An organization makes many models of cars, where a
model is characterized by a name and a suffix (such as GL
or XL which indicates the degree of luxury) and an engine
size.
Each model is made up from many parts and each part may
be used in the manufacture of more than one model. Each
part has a description and an id code. Each model of car is
produced at just one of the firm's factories, which areproduced at just one of the firm's factories, which are
located in London, Birmingham, Bristol, Wolverhampton
and Manchester - one in each city. A factory produces many
models of car and many types of part although each type of
part is produced at one factory only.
• A university consists of several faculties. Within each
faculty there are several departments. Each department
may run a number of courses. All teaching staff are
attached to departments, each staff member belonging to a
unique department. (Note: see how many meanings you
can assign to this ambiguous sentence). Every course is
composed of subcourses. Some subcourses are part of
more than one course. Staff may teach on many subcourses
and each subcourse may be taught by a number of staff.
Draw an entity-relationship model for this example. Show
both cardinalities and optionalities. Put a question mark
where the degree is not clear from the text.
• Draw an entity-relationship diagram for the following scenario, stating any
assumptions you find it necessary to make, and showing unknown
cardinalities and optionalities using question marks on the relationship
line. Show also the attributes explicitly mentioned in the scenario and
underline any you consider suitable candidates for being primary keys.
• It is required to keep the following information on students, courses and
subcourses. Each student has a name, identification number, home
address, term address, and a number of qualifications for which the
subject (e.g. maths), grade (e.g. C) and level (e.g. `A' level) are recorded.
Each student is registered for one course where each course has a name
(e.g. Information Systems) and an identification number. Record is kept of
Each student is registered for one course where each course has a name
(e.g. Information Systems) and an identification number. Record is kept of
the number of students registered for each course.
• Each course is divided into subcourses where a subcourse may be part of
more than one course. Information on subcourses includes the name,
identification number and the number of students taking the course.
• Draw an entity-relationship diagram for the following. Produce also a list of
questions you would have to have answered in order to complete the model.
• In a case study of this kind, and in particular in exam questions, there is not usually
the space to completely specify a problem. Remember also that not all the
information given in a case study of this type is necessarily relevant. Some
information, while relevant to the organization concerned, might not be relevant
as far as database design is concerned.
• Members of a friendly society invest money in any one of the society's branches. A
member may hold a number of investment accounts. Each investment account is
associated with the branch where it was opened, but money may be paid in or
withdrawn at any branch. For each account, the member holds an account book to
associated with the branch where it was opened, but money may be paid in or
withdrawn at any branch. For each account, the member holds an account book to
record all transactions. A member may also have one mortgage account. All
mortgage accounts are associated with the Head Office. Payments may be
transferred from any investment account into the mortgage account.
• SALES LEDGER AND STOCK CONTROL
• ABC Ltd plans to computerise its sales ordering and stock control system. A feasibility study has
strongly suggested that a relational database system be installed. The details of ABC's sales and
stock control are as follows:
• Customers send in orders for goods. Each order may contain requests for variable quantities of one
or more products from ABC's range. ABC keeps a stock file showing for each product the product
details and the preferred supplier, the quantity in stock, the reorder level and other details.
• ABC delivers those goods that it has in stock in response to the customer order and an invoice is
produced for the despatched items. Any items that were not in stock are placed on a back order list
and these items are usually re-ordered from the preferred supplier. Occasionally items are ordered
from alternative sources.from alternative sources.
• In response to the invoices that are sent out to ABC's customers, the customers send in payments.
Sometimes a payment will be for one invoice, sometimes for part of an invoice and sometimes for
several invoices and part-invoices.
• Draw an entity-relationship model, stating any assumptions made. Make sure you remove all many-
many relationships and replace them with new entity types and relationship types.

Más contenido relacionado

La actualidad más candente

PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts Bharat Kalia
 
Operating Systems - Processor Management
Operating Systems - Processor ManagementOperating Systems - Processor Management
Operating Systems - Processor ManagementDamian T. Gordon
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query OptimizationAli Usman
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9koolkampus
 
2.8 normal forms gnf & problems
2.8 normal forms   gnf & problems2.8 normal forms   gnf & problems
2.8 normal forms gnf & problemsSampath Kumar S
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMSkoolkampus
 
Simplifiaction of grammar
Simplifiaction of grammarSimplifiaction of grammar
Simplifiaction of grammarlavishka_anuj
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree methodRajendran
 
View, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptView, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptFramgia Vietnam
 
ER model to Relational model mapping
ER model to Relational model mappingER model to Relational model mapping
ER model to Relational model mappingShubham Saini
 
Designing Techniques in Software Engineering
Designing Techniques in Software EngineeringDesigning Techniques in Software Engineering
Designing Techniques in Software Engineeringkirupasuchi1996
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysisDattatray Gandhmal
 
Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithmBinal Parekh
 
Google Megastore
Google MegastoreGoogle Megastore
Google Megastorebergwolf
 

La actualidad más candente (20)

PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
 
Operating Systems - Processor Management
Operating Systems - Processor ManagementOperating Systems - Processor Management
Operating Systems - Processor Management
 
SQL Views
SQL ViewsSQL Views
SQL Views
 
Class based modeling
Class based modelingClass based modeling
Class based modeling
 
Jsp ppt
Jsp pptJsp ppt
Jsp ppt
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
 
2.8 normal forms gnf & problems
2.8 normal forms   gnf & problems2.8 normal forms   gnf & problems
2.8 normal forms gnf & problems
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
 
Simplifiaction of grammar
Simplifiaction of grammarSimplifiaction of grammar
Simplifiaction of grammar
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
View, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptView, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - Thaipt
 
DBMS Unit - 3 - Relational query languages
DBMS Unit - 3 - Relational query languagesDBMS Unit - 3 - Relational query languages
DBMS Unit - 3 - Relational query languages
 
ER model to Relational model mapping
ER model to Relational model mappingER model to Relational model mapping
ER model to Relational model mapping
 
Designing Techniques in Software Engineering
Designing Techniques in Software EngineeringDesigning Techniques in Software Engineering
Designing Techniques in Software Engineering
 
rdbms-notes
rdbms-notesrdbms-notes
rdbms-notes
 
Query processing
Query processingQuery processing
Query processing
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysis
 
Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithm
 
Google Megastore
Google MegastoreGoogle Megastore
Google Megastore
 

Similar a RDBMS ERD Examples

4. case study
4. case study4. case study
4. case studykhoahuy82
 
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptxBUSHRASHAIKH804312
 
Agile Education: PO Basics
Agile Education: PO BasicsAgile Education: PO Basics
Agile Education: PO BasicsBharti Rupani
 
1307578932 rubrics workshop
 1307578932 rubrics workshop 1307578932 rubrics workshop
1307578932 rubrics workshopjessbrecheisen
 
PMO Internship Final Presentation8.26
PMO Internship Final Presentation8.26PMO Internship Final Presentation8.26
PMO Internship Final Presentation8.26kaitlin cronin
 
Portfolios
Portfolios Portfolios
Portfolios yumna68
 
Bmgt 311 chapter_16
Bmgt 311 chapter_16Bmgt 311 chapter_16
Bmgt 311 chapter_16Chris Lovett
 
Content strategy for public lands websites part 2 2
Content strategy for public lands websites part 2 2Content strategy for public lands websites part 2 2
Content strategy for public lands websites part 2 2ss4appl
 
Rex - How User Stories can help you manage standard components of an IT project
Rex - How User Stories can help you manage standard components of an IT projectRex - How User Stories can help you manage standard components of an IT project
Rex - How User Stories can help you manage standard components of an IT projectJean-François Nguyen
 
Sheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docx
Sheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docxSheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docx
Sheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docxbagotjesusa
 
ER Questions.ppt
ER Questions.pptER Questions.ppt
ER Questions.pptbyeb6229
 
Introduction to Database Management Systems
Introduction to Database Management Systems Introduction to Database Management Systems
Introduction to Database Management Systems Reem Sherif
 
Customate Platform Demo - Custom Business Process Automation in a Ziffy!
Customate Platform Demo - Custom Business Process Automation in a Ziffy!Customate Platform Demo - Custom Business Process Automation in a Ziffy!
Customate Platform Demo - Custom Business Process Automation in a Ziffy!Vivek Jalan
 
Assignment 2 (research report)
Assignment 2 (research report)Assignment 2 (research report)
Assignment 2 (research report)Weng Chuan
 
ENG Assignment 2 (research report)
ENG Assignment 2 (research report)ENG Assignment 2 (research report)
ENG Assignment 2 (research report)Madeline Liew
 

Similar a RDBMS ERD Examples (20)

4. case study
4. case study4. case study
4. case study
 
Ass_01_2020.pptx
Ass_01_2020.pptxAss_01_2020.pptx
Ass_01_2020.pptx
 
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
 
Resume tutorial
Resume tutorialResume tutorial
Resume tutorial
 
Unit-2.pptx
Unit-2.pptxUnit-2.pptx
Unit-2.pptx
 
Agile Education: PO Basics
Agile Education: PO BasicsAgile Education: PO Basics
Agile Education: PO Basics
 
1307578932 rubrics workshop
 1307578932 rubrics workshop 1307578932 rubrics workshop
1307578932 rubrics workshop
 
PMO Internship Final Presentation8.26
PMO Internship Final Presentation8.26PMO Internship Final Presentation8.26
PMO Internship Final Presentation8.26
 
Portfolios
Portfolios Portfolios
Portfolios
 
Unit 2
Unit 2Unit 2
Unit 2
 
Bmgt 311 chapter_16
Bmgt 311 chapter_16Bmgt 311 chapter_16
Bmgt 311 chapter_16
 
Content strategy for public lands websites part 2 2
Content strategy for public lands websites part 2 2Content strategy for public lands websites part 2 2
Content strategy for public lands websites part 2 2
 
Rex - How User Stories can help you manage standard components of an IT project
Rex - How User Stories can help you manage standard components of an IT projectRex - How User Stories can help you manage standard components of an IT project
Rex - How User Stories can help you manage standard components of an IT project
 
Sheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docx
Sheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docxSheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docx
Sheet1ComponentPoints EarnedPossible PointsGeneral Logistics and W.docx
 
ER Questions.ppt
ER Questions.pptER Questions.ppt
ER Questions.ppt
 
Learning objectives
Learning objectivesLearning objectives
Learning objectives
 
Introduction to Database Management Systems
Introduction to Database Management Systems Introduction to Database Management Systems
Introduction to Database Management Systems
 
Customate Platform Demo - Custom Business Process Automation in a Ziffy!
Customate Platform Demo - Custom Business Process Automation in a Ziffy!Customate Platform Demo - Custom Business Process Automation in a Ziffy!
Customate Platform Demo - Custom Business Process Automation in a Ziffy!
 
Assignment 2 (research report)
Assignment 2 (research report)Assignment 2 (research report)
Assignment 2 (research report)
 
ENG Assignment 2 (research report)
ENG Assignment 2 (research report)ENG Assignment 2 (research report)
ENG Assignment 2 (research report)
 

Más de Sarmad Ali

Network Engineer Interview Questions with Answers
Network Engineer Interview Questions with Answers Network Engineer Interview Questions with Answers
Network Engineer Interview Questions with Answers Sarmad Ali
 
RDBMS ER2 Relational
RDBMS ER2 RelationalRDBMS ER2 Relational
RDBMS ER2 RelationalSarmad Ali
 
RDBMS Arch & Models
RDBMS Arch & ModelsRDBMS Arch & Models
RDBMS Arch & ModelsSarmad Ali
 
Management Information System-MIS
Management Information System-MISManagement Information System-MIS
Management Information System-MISSarmad Ali
 
Classification of Compilers
Classification of CompilersClassification of Compilers
Classification of CompilersSarmad Ali
 
Compiler Construction
Compiler ConstructionCompiler Construction
Compiler ConstructionSarmad Ali
 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction Sarmad Ali
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMSSarmad Ali
 
About Data Base
About Data BaseAbout Data Base
About Data BaseSarmad Ali
 
Management information system-MIS
Management information system-MISManagement information system-MIS
Management information system-MISSarmad Ali
 

Más de Sarmad Ali (13)

Network Engineer Interview Questions with Answers
Network Engineer Interview Questions with Answers Network Engineer Interview Questions with Answers
Network Engineer Interview Questions with Answers
 
RDBMS Model
RDBMS ModelRDBMS Model
RDBMS Model
 
RDBMS Algebra
RDBMS AlgebraRDBMS Algebra
RDBMS Algebra
 
RDBMS ERD
RDBMS ERDRDBMS ERD
RDBMS ERD
 
RDBMS ER2 Relational
RDBMS ER2 RelationalRDBMS ER2 Relational
RDBMS ER2 Relational
 
RDBMS Arch & Models
RDBMS Arch & ModelsRDBMS Arch & Models
RDBMS Arch & Models
 
Management Information System-MIS
Management Information System-MISManagement Information System-MIS
Management Information System-MIS
 
Classification of Compilers
Classification of CompilersClassification of Compilers
Classification of Compilers
 
Compiler Construction
Compiler ConstructionCompiler Construction
Compiler Construction
 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
About Data Base
About Data BaseAbout Data Base
About Data Base
 
Management information system-MIS
Management information system-MISManagement information system-MIS
Management information system-MIS
 

Último

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Último (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

RDBMS ERD Examples

  • 2. • a professor teaches zero, one or many classes and a class is taught by one professor • a course may generate zero, one or many classes and a class comes from one course • a class is held in one room but a room has many classesmany classes
  • 3. • an invoice is written by one salesrep but a salesrep writes many invoices • a vendor sells many products but a product is bought from one vendor • an invoice has one or many products and a product is found on zero, one or manyproduct is found on zero, one or many invoices
  • 4. • Customers identified by a CUSTOMER-NAME and with an ADDRESS buy items, items are identified by an ITEM-NO and have a COLOR. The QTYBOUGHT of an item by each customer is recorded. An item can be bought by many customers.customers.
  • 5. • Departments are identified by a DEPT-NO and have a budget. A department can manage many projects, but each project is managed by one department. Projects are identified by a PROJECT-NO and have a START-DATE.
  • 6. • An order with a unique ORDER-NO and ORDER-DATE can be made for any number of parts (identified by ITEM-NO and with a COLOR). QTY-ORDERED is the amount of each part ordered. Each order is made to one supplier (who has a unique SUPPLIER-NAMEsupplier (who has a unique SUPPLIER-NAME and one ADDRESS).
  • 7. • A fault occurs on one item of equipment. A logbook contains FAULT-NO, FAULT-DATE and FAULT-DESCRIPTION. Each item of equipment has a unique EUIP-NO and an EQUIP- DESCRIPTION and TYPE. Each such item is located in one building, which has a uniquelocated in one building, which has a unique BUILDING-NAME and one ADDRESS.
  • 8. • A student (with STUDENT-ID, ADDRESS, and SURNAME) takes any number of subjects which have a unique SUBJECT-NAME and a SUBJECTDESCRIPTION. The student is enrolled in a major that has a unique MAJORNAME and LENGTH. The date on which a student startedLENGTH. The date on which a student started a major is recorded. A subject is taught by one teacher, who is identified by a TEACHER-ID and has a TEACHER-ADDRESS.
  • 9. • A painter can paint many paintings; each paining is painted by one painter. A gallery can have many paintings. A painting can be exhibited by a gallery.
  • 10. • An organization makes many models of cars, where a model is characterized by a name and a suffix (such as GL or XL which indicates the degree of luxury) and an engine size. Each model is made up from many parts and each part may be used in the manufacture of more than one model. Each part has a description and an id code. Each model of car is produced at just one of the firm's factories, which areproduced at just one of the firm's factories, which are located in London, Birmingham, Bristol, Wolverhampton and Manchester - one in each city. A factory produces many models of car and many types of part although each type of part is produced at one factory only.
  • 11. • A university consists of several faculties. Within each faculty there are several departments. Each department may run a number of courses. All teaching staff are attached to departments, each staff member belonging to a unique department. (Note: see how many meanings you can assign to this ambiguous sentence). Every course is composed of subcourses. Some subcourses are part of more than one course. Staff may teach on many subcourses and each subcourse may be taught by a number of staff. Draw an entity-relationship model for this example. Show both cardinalities and optionalities. Put a question mark where the degree is not clear from the text.
  • 12. • Draw an entity-relationship diagram for the following scenario, stating any assumptions you find it necessary to make, and showing unknown cardinalities and optionalities using question marks on the relationship line. Show also the attributes explicitly mentioned in the scenario and underline any you consider suitable candidates for being primary keys. • It is required to keep the following information on students, courses and subcourses. Each student has a name, identification number, home address, term address, and a number of qualifications for which the subject (e.g. maths), grade (e.g. C) and level (e.g. `A' level) are recorded. Each student is registered for one course where each course has a name (e.g. Information Systems) and an identification number. Record is kept of Each student is registered for one course where each course has a name (e.g. Information Systems) and an identification number. Record is kept of the number of students registered for each course. • Each course is divided into subcourses where a subcourse may be part of more than one course. Information on subcourses includes the name, identification number and the number of students taking the course.
  • 13. • Draw an entity-relationship diagram for the following. Produce also a list of questions you would have to have answered in order to complete the model. • In a case study of this kind, and in particular in exam questions, there is not usually the space to completely specify a problem. Remember also that not all the information given in a case study of this type is necessarily relevant. Some information, while relevant to the organization concerned, might not be relevant as far as database design is concerned. • Members of a friendly society invest money in any one of the society's branches. A member may hold a number of investment accounts. Each investment account is associated with the branch where it was opened, but money may be paid in or withdrawn at any branch. For each account, the member holds an account book to associated with the branch where it was opened, but money may be paid in or withdrawn at any branch. For each account, the member holds an account book to record all transactions. A member may also have one mortgage account. All mortgage accounts are associated with the Head Office. Payments may be transferred from any investment account into the mortgage account.
  • 14. • SALES LEDGER AND STOCK CONTROL • ABC Ltd plans to computerise its sales ordering and stock control system. A feasibility study has strongly suggested that a relational database system be installed. The details of ABC's sales and stock control are as follows: • Customers send in orders for goods. Each order may contain requests for variable quantities of one or more products from ABC's range. ABC keeps a stock file showing for each product the product details and the preferred supplier, the quantity in stock, the reorder level and other details. • ABC delivers those goods that it has in stock in response to the customer order and an invoice is produced for the despatched items. Any items that were not in stock are placed on a back order list and these items are usually re-ordered from the preferred supplier. Occasionally items are ordered from alternative sources.from alternative sources. • In response to the invoices that are sent out to ABC's customers, the customers send in payments. Sometimes a payment will be for one invoice, sometimes for part of an invoice and sometimes for several invoices and part-invoices. • Draw an entity-relationship model, stating any assumptions made. Make sure you remove all many- many relationships and replace them with new entity types and relationship types.