SlideShare ist ein Scribd-Unternehmen logo
1 von 7
For any help regarding DatabaseHomework Help
visit : - https://www.databasehomeworkhelp.com/,
Email :- info@databasehomeworkhelp.com or
call us at :- +1 315 557-6473
Database and Systems Integration
Technologies
PART II: DATA MODEL AND UML
You are asked by a construction company to develop a Project Scheduling System using the
following business rules:
‱A project has an id, a name, a city, and a state.
‱An activity has an id, a name, a starting date and ending date. An activity may be design,
construction, quality assurance, etc.
‱Each activity belongs to a single project, but a project may have one or more activities.
‱A worker has an id and a name. Workers may be assigned to several projects and they
have a specific role in each project, but the role may be different on each project. (Roles
are different than activities.)
‱Several workers may be working on the same project.
‱There is a list of possible roles a worker may have in a project. (A worker’s role must be on
this list.) The possible roles a worker may have are construction worker, manager,
supervisor, or office management.
Q.1. Draw a normalized data model that corresponds to the set of business rules
presented below. Follow these steps. You only need to turn in one drawing that includes
all the elements listed in steps a‐e.
a) Draw a single box for each entity: give each an appropriate name.
b) List the attributes in the box for each entity.
c) Indicate the primary key for each entity by placing the phrase (PK) next to its name.
d) Draw all relationships between the entities in the model. Indicate foreign keys by
placing the phrase (FK) next to attributes that are foreign keys. Show the
associative/intermediate table explicitly in many‐to‐many relationships; don’t use the
many‐to‐many notation. You do not have to distinguish between one‐to‐one‐or‐many
and one‐to‐zero‐or‐many in your relationships.
e) Indicate the cardinality of the relationship: many‐many, many‐one or one‐one. Use
crows‐foot notation; if you use another notation, define it. You do not have to
indicate the data type.
Solution:
Q.2. What type of UML diagram would you use to represent the following aspects of the
new system? In one phrase, explain why.
a) The activities that make up the system and the connections between them:
Sol. a) Activity diagram
b) The status of an activity: in process, completed, delayed, etc.
Sol. b) State diagram
c) The people/roles, physical equipment, and constructed elements in the project
Sol. c) Component diagram
d) The various ways in which a worker, a project, and a schedule interact:
Sol. d) Use case
PART III: DATABASE AND SQL
Suppose that you have implemented the database described in Part II: the tables,
attributes, and relationships in the database correspond exactly to the model that you have
defined. You are now asked to write the following SQL queries against your database.
Briefly define any variable you use that isn’t obvious. Assume that the dates are integers;
the earliest date is day 1, and the latest date is some higher integer (e.g., day 120). You
don’t need to use SQL date arithmetic or date functions; just use standard addition or
subtraction.
Q.3. Determine the duration of a project with the name ‘Gilman Bridge Replacement’. The
duration of the project is determined by the duration of its activities.
Solution:
SELECT (MAX(dateEnd) ‐ MIN(dateStart)+ 1) AS Duration FROM Activities INNER JOIN
Projects ON Projects.ProjectID = Activities.ProjectID WHERE Projects.Name='Gilman Bridge
Replacement'
Q.4. List the name of the supervisor of the Gilman Bridge Replacement project. Assume
there is only one supervisor. Recall that ‘supervisor’ is a worker type.
Solution:
SELECT Workers.Name FROM Workers
INNER JOIN Workers_Projects ON Workers_Projects.WorkerID = Workers.WorkerID INNER
JOIN Projects ON Projects.ProjectID = Workers_Projects.ProjectID WHERE
Workers_Projects.RoleType = 'Supervisor'
AND Projects.Name = 'Gilman Bridge Replacement';
Q.5. Determine the total number of projects an employee has supervised.
Solution:
SELECT Workers.Name, COUNT(*) AS SupervisedProjects FROM Workers
INNER JOIN Workers_Projects ON Workers_Projects.WorkerID = Workers.WorkerID WHERE
Workers_Projects.RoleType = 'Supervisor'
Group BY Workers.Name
Q.6. Number of projects in each state. Each state should not be listed more than once
Solution:
SELECT State, COUNT(*) AS Projects_State FROM Projects
GROUP BY State

Weitere Àhnliche Inhalte

Ähnlich wie Database and Systems Integration Technologies.pptx

CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT Ipkaviya
 
Dennis Schmid Portfolio
Dennis Schmid PortfolioDennis Schmid Portfolio
Dennis Schmid PortfolioDennis Schmid
 
(OTW13) Agile Data Warehousing: Introduction to Data Vault Modeling
(OTW13) Agile Data Warehousing: Introduction to Data Vault Modeling(OTW13) Agile Data Warehousing: Introduction to Data Vault Modeling
(OTW13) Agile Data Warehousing: Introduction to Data Vault ModelingKent Graziano
 
PRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdfPRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdfjaymaraltamera
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineeringMuhammadTalha436
 
Non-functional requirements
Non-functional requirements Non-functional requirements
Non-functional requirements Rohela Raouf
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt064ChetanWani
 
Dbms qsntns
Dbms qsntnsDbms qsntns
Dbms qsntnsViMal RaJa
 
implementing oop_concept
 implementing oop_concept implementing oop_concept
implementing oop_conceptAmit Gupta
 
dbms final.pdf
dbms final.pdfdbms final.pdf
dbms final.pdfRaKesh3868
 
ER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfSadiaSharmin40
 
Move a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloudMove a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloudIke Ellis
 
SetFocus Portfolio
SetFocus PortfolioSetFocus Portfolio
SetFocus PortfolioFrank Stepanski
 
Mca5033 open source db systems
Mca5033 open source db systemsMca5033 open source db systems
Mca5033 open source db systemssmumbahelp
 
Programming Building Blocks for Admins
Programming Building Blocks for Admins Programming Building Blocks for Admins
Programming Building Blocks for Admins Salesforce Admins
 
TEST PPT
TEST PPTTEST PPT
TEST PPTberryzed
 
Unit-III(Design).pptx
Unit-III(Design).pptxUnit-III(Design).pptx
Unit-III(Design).pptxFajar Baskoro
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principlessaurabhshertukde
 

Ähnlich wie Database and Systems Integration Technologies.pptx (20)

CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT I
 
Dennis Schmid Portfolio
Dennis Schmid PortfolioDennis Schmid Portfolio
Dennis Schmid Portfolio
 
(OTW13) Agile Data Warehousing: Introduction to Data Vault Modeling
(OTW13) Agile Data Warehousing: Introduction to Data Vault Modeling(OTW13) Agile Data Warehousing: Introduction to Data Vault Modeling
(OTW13) Agile Data Warehousing: Introduction to Data Vault Modeling
 
PRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdfPRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdf
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
 
Non-functional requirements
Non-functional requirements Non-functional requirements
Non-functional requirements
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
 
Dbms qsntns
Dbms qsntnsDbms qsntns
Dbms qsntns
 
implementing oop_concept
 implementing oop_concept implementing oop_concept
implementing oop_concept
 
dbms final.pdf
dbms final.pdfdbms final.pdf
dbms final.pdf
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
ER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdf
 
Move a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloudMove a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloud
 
SetFocus Portfolio
SetFocus PortfolioSetFocus Portfolio
SetFocus Portfolio
 
Mca5033 open source db systems
Mca5033 open source db systemsMca5033 open source db systems
Mca5033 open source db systems
 
Programming Building Blocks for Admins
Programming Building Blocks for Admins Programming Building Blocks for Admins
Programming Building Blocks for Admins
 
TEST PPT
TEST PPTTEST PPT
TEST PPT
 
ER modeling
ER modelingER modeling
ER modeling
 
Unit-III(Design).pptx
Unit-III(Design).pptxUnit-III(Design).pptx
Unit-III(Design).pptx
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principles
 

Mehr von Database Homework Help

Introduction To Database Security.pptx
Introduction To Database Security.pptxIntroduction To Database Security.pptx
Introduction To Database Security.pptxDatabase Homework Help
 
Introduction To Database Design.pptx
Introduction To Database Design.pptxIntroduction To Database Design.pptx
Introduction To Database Design.pptxDatabase Homework Help
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase Homework Help
 
Database and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptxDatabase and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptxDatabase Homework Help
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase Homework Help
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase Homework Help
 
Database Systems Assignment Help
Database Systems Assignment HelpDatabase Systems Assignment Help
Database Systems Assignment HelpDatabase Homework Help
 
databasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptxdatabasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptxDatabase Homework Help
 
databasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptxdatabasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptxDatabase Homework Help
 
Database Management Assignment Help
Database Management Assignment Help Database Management Assignment Help
Database Management Assignment Help Database Homework Help
 

Mehr von Database Homework Help (17)

Database System.pptx
Database System.pptxDatabase System.pptx
Database System.pptx
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Introduction To Database Security.pptx
Introduction To Database Security.pptxIntroduction To Database Security.pptx
Introduction To Database Security.pptx
 
Introduction To Database Design.pptx
Introduction To Database Design.pptxIntroduction To Database Design.pptx
Introduction To Database Design.pptx
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptx
 
Database and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptxDatabase and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptx
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptx
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptx
 
Database Systems Assignment Help
Database Systems Assignment HelpDatabase Systems Assignment Help
Database Systems Assignment Help
 
databasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptxdatabasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptx
 
databasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptxdatabasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptx
 
Instant DBMS Assignment Help
Instant DBMS Assignment HelpInstant DBMS Assignment Help
Instant DBMS Assignment Help
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Instant DBMS Homework Help
Instant DBMS Homework HelpInstant DBMS Homework Help
Instant DBMS Homework Help
 
Database Management Assignment Help
Database Management Assignment Help Database Management Assignment Help
Database Management Assignment Help
 

KĂŒrzlich hochgeladen

Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)lakshayb543
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...Nguyen Thanh Tu Collection
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 

KĂŒrzlich hochgeladen (20)

Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 

Database and Systems Integration Technologies.pptx

  • 1. For any help regarding DatabaseHomework Help visit : - https://www.databasehomeworkhelp.com/, Email :- info@databasehomeworkhelp.com or call us at :- +1 315 557-6473 Database and Systems Integration Technologies
  • 2. PART II: DATA MODEL AND UML You are asked by a construction company to develop a Project Scheduling System using the following business rules: ‱A project has an id, a name, a city, and a state. ‱An activity has an id, a name, a starting date and ending date. An activity may be design, construction, quality assurance, etc. ‱Each activity belongs to a single project, but a project may have one or more activities. ‱A worker has an id and a name. Workers may be assigned to several projects and they have a specific role in each project, but the role may be different on each project. (Roles are different than activities.) ‱Several workers may be working on the same project. ‱There is a list of possible roles a worker may have in a project. (A worker’s role must be on this list.) The possible roles a worker may have are construction worker, manager, supervisor, or office management. Q.1. Draw a normalized data model that corresponds to the set of business rules presented below. Follow these steps. You only need to turn in one drawing that includes all the elements listed in steps a‐e.
  • 3. a) Draw a single box for each entity: give each an appropriate name. b) List the attributes in the box for each entity. c) Indicate the primary key for each entity by placing the phrase (PK) next to its name. d) Draw all relationships between the entities in the model. Indicate foreign keys by placing the phrase (FK) next to attributes that are foreign keys. Show the associative/intermediate table explicitly in many‐to‐many relationships; don’t use the many‐to‐many notation. You do not have to distinguish between one‐to‐one‐or‐many and one‐to‐zero‐or‐many in your relationships. e) Indicate the cardinality of the relationship: many‐many, many‐one or one‐one. Use crows‐foot notation; if you use another notation, define it. You do not have to indicate the data type.
  • 5. Q.2. What type of UML diagram would you use to represent the following aspects of the new system? In one phrase, explain why. a) The activities that make up the system and the connections between them: Sol. a) Activity diagram b) The status of an activity: in process, completed, delayed, etc. Sol. b) State diagram c) The people/roles, physical equipment, and constructed elements in the project Sol. c) Component diagram d) The various ways in which a worker, a project, and a schedule interact: Sol. d) Use case
  • 6. PART III: DATABASE AND SQL Suppose that you have implemented the database described in Part II: the tables, attributes, and relationships in the database correspond exactly to the model that you have defined. You are now asked to write the following SQL queries against your database. Briefly define any variable you use that isn’t obvious. Assume that the dates are integers; the earliest date is day 1, and the latest date is some higher integer (e.g., day 120). You don’t need to use SQL date arithmetic or date functions; just use standard addition or subtraction. Q.3. Determine the duration of a project with the name ‘Gilman Bridge Replacement’. The duration of the project is determined by the duration of its activities. Solution: SELECT (MAX(dateEnd) ‐ MIN(dateStart)+ 1) AS Duration FROM Activities INNER JOIN Projects ON Projects.ProjectID = Activities.ProjectID WHERE Projects.Name='Gilman Bridge Replacement' Q.4. List the name of the supervisor of the Gilman Bridge Replacement project. Assume there is only one supervisor. Recall that ‘supervisor’ is a worker type.
  • 7. Solution: SELECT Workers.Name FROM Workers INNER JOIN Workers_Projects ON Workers_Projects.WorkerID = Workers.WorkerID INNER JOIN Projects ON Projects.ProjectID = Workers_Projects.ProjectID WHERE Workers_Projects.RoleType = 'Supervisor' AND Projects.Name = 'Gilman Bridge Replacement'; Q.5. Determine the total number of projects an employee has supervised. Solution: SELECT Workers.Name, COUNT(*) AS SupervisedProjects FROM Workers INNER JOIN Workers_Projects ON Workers_Projects.WorkerID = Workers.WorkerID WHERE Workers_Projects.RoleType = 'Supervisor' Group BY Workers.Name Q.6. Number of projects in each state. Each state should not be listed more than once Solution: SELECT State, COUNT(*) AS Projects_State FROM Projects GROUP BY State