SlideShare a Scribd company logo
1 of 6
The Patient Assistance Network (PAN) is a non‐profit
organization that providessupport and care for
patients. PANneeds a database systemto keep track ofthe
personnelthatsupportthe organization.
There are many categories of people that need to be tracked in
the PAN database. Each person may
fall into more than one of the following categories: clients,
volunteers, employees, and donors.
There will be some people who do not fall in any of those
categories. PAN tracksthe name (first and
last), date of birth, ethnicity, gender, and profession of each
person. In addition, PAN assigns a
unique ID number to each person. PAN also stores the contact
information for each person
consisting of a mailing address (street, city, state, zip), email
address, and contact numbers. Each
contact numbershould be stored with itstype (such as home,
work, cell, etc.). Finally, PANmaintains
a mailing list for its monthly newsletter, so the system should
track whether each person in the
database is on thatlist.
PAN tracksitslist of clientsin the database. For each client, PAN
tracksthe names(first and last) and
phone numbers of his or her doctor and attorney. PAN also
tracksthe date the client first joined the
organization. Each client has a list of needs such as
housekeeping, transportation, yard work, etc.
Each ofthese needsis also associated with a value indicating
itsimportance to the client(1‐10).
PAN provides care and support for each client using teamsthat
contain many volunteers. Each team
caresforseveral clients, and more than one team may support a
client. Each team isidentified by its
name, and each team has a type and date it wasformed. A
volunteer may serve on multiple teams.
For each volunteer, the database should store the date he orshe
first joined PAN. In addition, PAN
should record the number of hours a volunteer worked each
month for a particularteam. Note that
the volunteers do not work the same number of hours
eachmonth. One ofthe volunteers on a team
serves asthe teamleader, and thisinformation should be tracked
in the database as well.
Every team must report to a PAN employee, and more than one
team may report to the same
employee. Each team meets periodically with its employee to
discuss its current status. The
database should record the date of each meeting as well as a
brief description of its content. For
each employee, the database should store the employee’s
monthly salary, maritalstatus, date hired,
and whether employee isfull‐ or half‐time. An employee may
charge several expenses each month.
The database should track the date ofthe expense, along with the
amount and its description.
PAN depends on support from its donors. The database should
track these people as well asrecord
each oftheir donations. Thisinformation should include the date,
amount, and paymenttype of each
donation. In addition,the database should track whether each
donor wishesto remain anonymous.
Each person in the databasemay be affiliated with one or more
external organizations. The database
should track thisinformation as well. The database should note
which person in the database isthe
official contact person for the organization. Each organization
should have a unique name, type,
mailing address, phone number, and Web site. In addition, each
organization may sponsor one or
more PAN teams, and a team may have more than one sponsor.
Each organization may also make
several donationsto PAN, and the database should track the
same donation information asit doesfor
individual donors. Thisincludesthe ability forthe organization to
donate anonymously.
II.QUERIES
1. Enter a new employee into the database and associate him or
herto one or more expenses. Use
7 examples.
2. Enter a new teaminto the database and associate itto an
employee. Use 5 examples.
3. Enter a new client into the database and associate him or her
with one or more teams. Include
one ormore needsfor each client. Use 7 examples.
4. Enter a new volunteer into the database and associate him or
her with one or more teams.
Include the number of hoursthe volunteer worked this month on
each team and if the volunteer
isthe leaderforthatteam. Use 7 examples.
5. Enter a new organization and associate itto one ormore
PANteams. Use 5 examples.
6. Enter a new donor and associate himor her with one ormore
donations. Use 7 examples.
7. Enter a new donation and associate it with an organization.
Use 7 examples.
8. List the name and phone number ofthe doctor of each client
(along with the client’s name). Sort
the list by client’slast name,then by first name.
9. List the names of anonymous donorsin the database who are
not on the mailing list. Include the
total amount donated from each donor. Sort the list by total
donation amount in descending
order.
10. Retrieve the list of volunteersthat are members
ofteamsthatsupport a given client. The client’s
IDnumbershould be prompted by the database. Sortthe list by
the volunteersjoining date.
11. Retrieve the names and addresses of clients that are
supported by the teams that report to the
employee with the highestsalary. Sortthe list by the client’slast
name.
12. Retrieve the name, address, and total amount donated by
donors that are also clients. The list
should be sorted by the total amount of the donations, and
indicate if each donor wishes to
remain anonymous.
13. List the occurrences when a volunteer supports a client that
is a different gender. For each
occurrence, listthe volunteer’s name, joining date,teamname,
and client’s name. Sortthe list by
client’s name (last,first),then by teamname,then by volunteer’s
name (last,first).
14. Retrieve the list of needs that are considered to be important
by multiple clients. An important
need has a rank of 7 or higher.
15. Retrieve the effective amount donated by each organization.
The effective amount isthe sum of
the organization’s donations and the total amount of donations
made by all of the individuals
affiliated with the organization.
16. Retrieve the names, total expenses, and salaries of the
employees with annual salaries that
exceed the total amount of his or her expenses. Sortthe list by
salary in descending order.
17. Increase the salary by 10% of all half‐time employees who
havemultiple teamsreportto them.
18. Reduce by 1 the importance ofthemost commonly requested
need for each client.
19. Delete the employee that hasmet with the fewesttotal
number oftimes with his or herteams.
20. Delete the volunteer that has worked the least total number
of hours. The volunteer should be
removed fromallteams as well.
21. (Optional for Bonus Points) Generate a report that lists all
of the donations made by donors and
organizations. Each row should list the donor name, amount,
and date of donation along with a
field indicating if the donation was anonymous. The list should
be sorted by donation date in
decreasing order. There should be a row after eachmonth giving
a total ofthe donationsmade in
that month (in the same column as the donation date). The donor
name in this row should be
“Monthly Total”. Similarsubtotalrowsshould exist after each
year with the name “Yearly Total”.
The lastrow in the reportshould be a grand total with the name
“Grand Total”.
III. TASKS TOBE PERFORMED
Task 1. (15 points)Design an E‐R diagramto representthe
systemdescribed in PartI.
Task 2. (15 points) Reduce your E‐R diagram to a relational
database. Provide a Data Dictionary that
liststhe names,types, definitions, and constraints of all
attributesin each table.
Task 3. (10 points) Construct SQL statements to create the
tables and any necessary views, and
implement them in Oracle. Implement SQL statements in Oracle
that will remove the tables and
views as well.
Task 4. (80 points) Write example SQL statements for all of the
queries defined in part II, and
implementtheminOracle. Note thatsome ofthe queriesmay
requiremultiple SQL statements.
The Patient Assistance Network (PAN) is a non‐profit organization th.docx

More Related Content

Similar to The Patient Assistance Network (PAN) is a non‐profit organization th.docx

HFT Fundraising Process
HFT Fundraising ProcessHFT Fundraising Process
HFT Fundraising ProcessHFT
 
Fundraising Basics_A Complete Gu.docx
Fundraising Basics_A Complete Gu.docxFundraising Basics_A Complete Gu.docx
Fundraising Basics_A Complete Gu.docxbudbarber38650
 
End User Training_Short Version
End User Training_Short VersionEnd User Training_Short Version
End User Training_Short VersionKenny Berrouet
 
Henry Smith Charity
Henry Smith CharityHenry Smith Charity
Henry Smith Charitysyfab
 
The Secret to Researching, Writing, and Obtaining Grants
The Secret to Researching, Writing, and Obtaining GrantsThe Secret to Researching, Writing, and Obtaining Grants
The Secret to Researching, Writing, and Obtaining GrantsAplos Software
 
Lexington Finance Training
Lexington Finance TrainingLexington Finance Training
Lexington Finance Trainingmassgop
 
26744270 Amcv2220 Joint Proposal With Globe Letterhead
26744270 Amcv2220 Joint Proposal With Globe Letterhead26744270 Amcv2220 Joint Proposal With Globe Letterhead
26744270 Amcv2220 Joint Proposal With Globe LetterheadRashida Amahtullah
 
Grant Writing 101 - SEAR Summit
Grant Writing 101 - SEAR SummitGrant Writing 101 - SEAR Summit
Grant Writing 101 - SEAR SummitAmanda Potter Cole
 
Best Practices
Best PracticesBest Practices
Best PracticesEmt John
 
Using Social Media to Promote Your Non-Profit Event or Business
Using Social Media to Promote Your Non-Profit Event or BusinessUsing Social Media to Promote Your Non-Profit Event or Business
Using Social Media to Promote Your Non-Profit Event or BusinessAnyssa Jane
 
As discussed in this unit, a problemneeds statement is often a requ.docx
As discussed in this unit, a problemneeds statement is often a requ.docxAs discussed in this unit, a problemneeds statement is often a requ.docx
As discussed in this unit, a problemneeds statement is often a requ.docxrosemaryralphs52525
 
Question One (at least 200Wodrs).docx
Question One (at least 200Wodrs).docxQuestion One (at least 200Wodrs).docx
Question One (at least 200Wodrs).docxmakdul
 
Mission Based Business Planning - Central Oregon Partnership
Mission Based Business Planning - Central Oregon PartnershipMission Based Business Planning - Central Oregon Partnership
Mission Based Business Planning - Central Oregon PartnershipMark Pomerantz
 
Different Views Of The Comparison Between Non-Profit And...
Different Views Of The Comparison Between Non-Profit And...Different Views Of The Comparison Between Non-Profit And...
Different Views Of The Comparison Between Non-Profit And...Kate Loge
 
NPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden Gems
NPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden GemsNPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden Gems
NPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden GemsNetSquared
 

Similar to The Patient Assistance Network (PAN) is a non‐profit organization th.docx (20)

HFT Fundraising Process
HFT Fundraising ProcessHFT Fundraising Process
HFT Fundraising Process
 
Fundraising Basics_A Complete Gu.docx
Fundraising Basics_A Complete Gu.docxFundraising Basics_A Complete Gu.docx
Fundraising Basics_A Complete Gu.docx
 
End User Training_Short Version
End User Training_Short VersionEnd User Training_Short Version
End User Training_Short Version
 
Henry Smith Charity
Henry Smith CharityHenry Smith Charity
Henry Smith Charity
 
March 2017
March 2017March 2017
March 2017
 
The Secret to Researching, Writing, and Obtaining Grants
The Secret to Researching, Writing, and Obtaining GrantsThe Secret to Researching, Writing, and Obtaining Grants
The Secret to Researching, Writing, and Obtaining Grants
 
Lexington Finance Training
Lexington Finance TrainingLexington Finance Training
Lexington Finance Training
 
26744270 Amcv2220 Joint Proposal With Globe Letterhead
26744270 Amcv2220 Joint Proposal With Globe Letterhead26744270 Amcv2220 Joint Proposal With Globe Letterhead
26744270 Amcv2220 Joint Proposal With Globe Letterhead
 
Grant Writing 101 - SEAR Summit
Grant Writing 101 - SEAR SummitGrant Writing 101 - SEAR Summit
Grant Writing 101 - SEAR Summit
 
"Investigating Nonprofits" in Minneapolis 2011
"Investigating Nonprofits" in Minneapolis 2011"Investigating Nonprofits" in Minneapolis 2011
"Investigating Nonprofits" in Minneapolis 2011
 
Best Practices
Best PracticesBest Practices
Best Practices
 
Using Social Media to Promote Your Non-Profit Event or Business
Using Social Media to Promote Your Non-Profit Event or BusinessUsing Social Media to Promote Your Non-Profit Event or Business
Using Social Media to Promote Your Non-Profit Event or Business
 
As discussed in this unit, a problemneeds statement is often a requ.docx
As discussed in this unit, a problemneeds statement is often a requ.docxAs discussed in this unit, a problemneeds statement is often a requ.docx
As discussed in this unit, a problemneeds statement is often a requ.docx
 
Question One (at least 200Wodrs).docx
Question One (at least 200Wodrs).docxQuestion One (at least 200Wodrs).docx
Question One (at least 200Wodrs).docx
 
Business Letterhead Globe
Business Letterhead GlobeBusiness Letterhead Globe
Business Letterhead Globe
 
Chasing Corporate Donors
Chasing Corporate DonorsChasing Corporate Donors
Chasing Corporate Donors
 
Winning grants (2)
Winning grants (2)Winning grants (2)
Winning grants (2)
 
Mission Based Business Planning - Central Oregon Partnership
Mission Based Business Planning - Central Oregon PartnershipMission Based Business Planning - Central Oregon Partnership
Mission Based Business Planning - Central Oregon Partnership
 
Different Views Of The Comparison Between Non-Profit And...
Different Views Of The Comparison Between Non-Profit And...Different Views Of The Comparison Between Non-Profit And...
Different Views Of The Comparison Between Non-Profit And...
 
NPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden Gems
NPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden GemsNPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden Gems
NPTechClubATX: Prospecting - Reviewing Your Own Databases for Hidden Gems
 

More from gabrielaj9

The preferences of a consumer are represented by the utility functio.docx
The preferences of a consumer are represented by the utility functio.docxThe preferences of a consumer are represented by the utility functio.docx
The preferences of a consumer are represented by the utility functio.docxgabrielaj9
 
The primary written assignment in this course will be a PersuasiveA.docx
The primary written assignment in this course will be a PersuasiveA.docxThe primary written assignment in this course will be a PersuasiveA.docx
The primary written assignment in this course will be a PersuasiveA.docxgabrielaj9
 
The Prime National Properties Group is a member of the Educational.docx
The Prime National Properties Group is a member of the Educational.docxThe Prime National Properties Group is a member of the Educational.docx
The Prime National Properties Group is a member of the Educational.docxgabrielaj9
 
The primary objective of this assignment is to ensure that students .docx
The primary objective of this assignment is to ensure that students .docxThe primary objective of this assignment is to ensure that students .docx
The primary objective of this assignment is to ensure that students .docxgabrielaj9
 
The primary goal of your final assignment is to critically analyze t.docx
The primary goal of your final assignment is to critically analyze t.docxThe primary goal of your final assignment is to critically analyze t.docx
The primary goal of your final assignment is to critically analyze t.docxgabrielaj9
 
The primary purpose of a crime scene search is to develop associativ.docx
The primary purpose of a crime scene search is to develop associativ.docxThe primary purpose of a crime scene search is to develop associativ.docx
The primary purpose of a crime scene search is to develop associativ.docxgabrielaj9
 
The primary goal of your final assignment is to critically analy.docx
The primary goal of your final assignment is to critically analy.docxThe primary goal of your final assignment is to critically analy.docx
The primary goal of your final assignment is to critically analy.docxgabrielaj9
 
The primary purpose of the Concept Paper is to obtain instructor.docx
The primary purpose of the Concept Paper is to obtain instructor.docxThe primary purpose of the Concept Paper is to obtain instructor.docx
The primary purpose of the Concept Paper is to obtain instructor.docxgabrielaj9
 
The primary goal of the vulnerability assessment and remediation is .docx
The primary goal of the vulnerability assessment and remediation is .docxThe primary goal of the vulnerability assessment and remediation is .docx
The primary goal of the vulnerability assessment and remediation is .docxgabrielaj9
 
The President with the best character is the (Points 1)       .docx
The President with the best character is the (Points  1)       .docxThe President with the best character is the (Points  1)       .docx
The President with the best character is the (Points 1)       .docxgabrielaj9
 
The presidents qualities have had an important impact on how each o.docx
The presidents qualities have had an important impact on how each o.docxThe presidents qualities have had an important impact on how each o.docx
The presidents qualities have had an important impact on how each o.docxgabrielaj9
 
The president of Russia is considered the head of th.docx
The president of Russia is considered the head of th.docxThe president of Russia is considered the head of th.docx
The president of Russia is considered the head of th.docxgabrielaj9
 
The presidential election of 1912 was the most Progressive in US his.docx
The presidential election of 1912 was the most Progressive in US his.docxThe presidential election of 1912 was the most Progressive in US his.docx
The presidential election of 1912 was the most Progressive in US his.docxgabrielaj9
 
The prevalence of Opioid use among pregnant Mothers;Please e.docx
The prevalence of Opioid use among pregnant Mothers;Please e.docxThe prevalence of Opioid use among pregnant Mothers;Please e.docx
The prevalence of Opioid use among pregnant Mothers;Please e.docxgabrielaj9
 
The presentations yesterday and today covered these three important .docx
The presentations yesterday and today covered these three important .docxThe presentations yesterday and today covered these three important .docx
The presentations yesterday and today covered these three important .docxgabrielaj9
 
The PresidencyDuring the 19th century, Congress was America’.docx
The PresidencyDuring the 19th century, Congress was America’.docxThe PresidencyDuring the 19th century, Congress was America’.docx
The PresidencyDuring the 19th century, Congress was America’.docxgabrielaj9
 
The PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docx
The PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docxThe PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docx
The PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docxgabrielaj9
 
The PresentationCongratulations. Your project has been staff.docx
The PresentationCongratulations. Your project has been staff.docxThe PresentationCongratulations. Your project has been staff.docx
The PresentationCongratulations. Your project has been staff.docxgabrielaj9
 
The President and Fellows of Harvard CollegeHarvard School o.docx
The President and Fellows of Harvard CollegeHarvard School o.docxThe President and Fellows of Harvard CollegeHarvard School o.docx
The President and Fellows of Harvard CollegeHarvard School o.docxgabrielaj9
 
the president is considering a capital gains tax cut.(a capital gain.docx
the president is considering a capital gains tax cut.(a capital gain.docxthe president is considering a capital gains tax cut.(a capital gain.docx
the president is considering a capital gains tax cut.(a capital gain.docxgabrielaj9
 

More from gabrielaj9 (20)

The preferences of a consumer are represented by the utility functio.docx
The preferences of a consumer are represented by the utility functio.docxThe preferences of a consumer are represented by the utility functio.docx
The preferences of a consumer are represented by the utility functio.docx
 
The primary written assignment in this course will be a PersuasiveA.docx
The primary written assignment in this course will be a PersuasiveA.docxThe primary written assignment in this course will be a PersuasiveA.docx
The primary written assignment in this course will be a PersuasiveA.docx
 
The Prime National Properties Group is a member of the Educational.docx
The Prime National Properties Group is a member of the Educational.docxThe Prime National Properties Group is a member of the Educational.docx
The Prime National Properties Group is a member of the Educational.docx
 
The primary objective of this assignment is to ensure that students .docx
The primary objective of this assignment is to ensure that students .docxThe primary objective of this assignment is to ensure that students .docx
The primary objective of this assignment is to ensure that students .docx
 
The primary goal of your final assignment is to critically analyze t.docx
The primary goal of your final assignment is to critically analyze t.docxThe primary goal of your final assignment is to critically analyze t.docx
The primary goal of your final assignment is to critically analyze t.docx
 
The primary purpose of a crime scene search is to develop associativ.docx
The primary purpose of a crime scene search is to develop associativ.docxThe primary purpose of a crime scene search is to develop associativ.docx
The primary purpose of a crime scene search is to develop associativ.docx
 
The primary goal of your final assignment is to critically analy.docx
The primary goal of your final assignment is to critically analy.docxThe primary goal of your final assignment is to critically analy.docx
The primary goal of your final assignment is to critically analy.docx
 
The primary purpose of the Concept Paper is to obtain instructor.docx
The primary purpose of the Concept Paper is to obtain instructor.docxThe primary purpose of the Concept Paper is to obtain instructor.docx
The primary purpose of the Concept Paper is to obtain instructor.docx
 
The primary goal of the vulnerability assessment and remediation is .docx
The primary goal of the vulnerability assessment and remediation is .docxThe primary goal of the vulnerability assessment and remediation is .docx
The primary goal of the vulnerability assessment and remediation is .docx
 
The President with the best character is the (Points 1)       .docx
The President with the best character is the (Points  1)       .docxThe President with the best character is the (Points  1)       .docx
The President with the best character is the (Points 1)       .docx
 
The presidents qualities have had an important impact on how each o.docx
The presidents qualities have had an important impact on how each o.docxThe presidents qualities have had an important impact on how each o.docx
The presidents qualities have had an important impact on how each o.docx
 
The president of Russia is considered the head of th.docx
The president of Russia is considered the head of th.docxThe president of Russia is considered the head of th.docx
The president of Russia is considered the head of th.docx
 
The presidential election of 1912 was the most Progressive in US his.docx
The presidential election of 1912 was the most Progressive in US his.docxThe presidential election of 1912 was the most Progressive in US his.docx
The presidential election of 1912 was the most Progressive in US his.docx
 
The prevalence of Opioid use among pregnant Mothers;Please e.docx
The prevalence of Opioid use among pregnant Mothers;Please e.docxThe prevalence of Opioid use among pregnant Mothers;Please e.docx
The prevalence of Opioid use among pregnant Mothers;Please e.docx
 
The presentations yesterday and today covered these three important .docx
The presentations yesterday and today covered these three important .docxThe presentations yesterday and today covered these three important .docx
The presentations yesterday and today covered these three important .docx
 
The PresidencyDuring the 19th century, Congress was America’.docx
The PresidencyDuring the 19th century, Congress was America’.docxThe PresidencyDuring the 19th century, Congress was America’.docx
The PresidencyDuring the 19th century, Congress was America’.docx
 
The PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docx
The PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docxThe PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docx
The PresidencyChapter 11CHAPTER 11 THE PRESIDENCYTh.docx
 
The PresentationCongratulations. Your project has been staff.docx
The PresentationCongratulations. Your project has been staff.docxThe PresentationCongratulations. Your project has been staff.docx
The PresentationCongratulations. Your project has been staff.docx
 
The President and Fellows of Harvard CollegeHarvard School o.docx
The President and Fellows of Harvard CollegeHarvard School o.docxThe President and Fellows of Harvard CollegeHarvard School o.docx
The President and Fellows of Harvard CollegeHarvard School o.docx
 
the president is considering a capital gains tax cut.(a capital gain.docx
the president is considering a capital gains tax cut.(a capital gain.docxthe president is considering a capital gains tax cut.(a capital gain.docx
the president is considering a capital gains tax cut.(a capital gain.docx
 

Recently uploaded

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
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
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
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 Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
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
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
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
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
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
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 

Recently uploaded (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
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Ữ Â...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
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 Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
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...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
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
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
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
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 

The Patient Assistance Network (PAN) is a non‐profit organization th.docx

  • 1. The Patient Assistance Network (PAN) is a non‐profit organization that providessupport and care for patients. PANneeds a database systemto keep track ofthe personnelthatsupportthe organization. There are many categories of people that need to be tracked in the PAN database. Each person may fall into more than one of the following categories: clients, volunteers, employees, and donors. There will be some people who do not fall in any of those categories. PAN tracksthe name (first and last), date of birth, ethnicity, gender, and profession of each person. In addition, PAN assigns a unique ID number to each person. PAN also stores the contact information for each person consisting of a mailing address (street, city, state, zip), email address, and contact numbers. Each contact numbershould be stored with itstype (such as home, work, cell, etc.). Finally, PANmaintains a mailing list for its monthly newsletter, so the system should track whether each person in the database is on thatlist. PAN tracksitslist of clientsin the database. For each client, PAN tracksthe names(first and last) and phone numbers of his or her doctor and attorney. PAN also tracksthe date the client first joined the organization. Each client has a list of needs such as housekeeping, transportation, yard work, etc. Each ofthese needsis also associated with a value indicating itsimportance to the client(1‐10). PAN provides care and support for each client using teamsthat contain many volunteers. Each team caresforseveral clients, and more than one team may support a client. Each team isidentified by its name, and each team has a type and date it wasformed. A volunteer may serve on multiple teams.
  • 2. For each volunteer, the database should store the date he orshe first joined PAN. In addition, PAN should record the number of hours a volunteer worked each month for a particularteam. Note that the volunteers do not work the same number of hours eachmonth. One ofthe volunteers on a team serves asthe teamleader, and thisinformation should be tracked in the database as well. Every team must report to a PAN employee, and more than one team may report to the same employee. Each team meets periodically with its employee to discuss its current status. The database should record the date of each meeting as well as a brief description of its content. For each employee, the database should store the employee’s monthly salary, maritalstatus, date hired, and whether employee isfull‐ or half‐time. An employee may charge several expenses each month. The database should track the date ofthe expense, along with the amount and its description. PAN depends on support from its donors. The database should track these people as well asrecord each oftheir donations. Thisinformation should include the date, amount, and paymenttype of each donation. In addition,the database should track whether each donor wishesto remain anonymous. Each person in the databasemay be affiliated with one or more external organizations. The database should track thisinformation as well. The database should note which person in the database isthe official contact person for the organization. Each organization should have a unique name, type, mailing address, phone number, and Web site. In addition, each organization may sponsor one or more PAN teams, and a team may have more than one sponsor. Each organization may also make
  • 3. several donationsto PAN, and the database should track the same donation information asit doesfor individual donors. Thisincludesthe ability forthe organization to donate anonymously. II.QUERIES 1. Enter a new employee into the database and associate him or herto one or more expenses. Use 7 examples. 2. Enter a new teaminto the database and associate itto an employee. Use 5 examples. 3. Enter a new client into the database and associate him or her with one or more teams. Include one ormore needsfor each client. Use 7 examples. 4. Enter a new volunteer into the database and associate him or her with one or more teams. Include the number of hoursthe volunteer worked this month on each team and if the volunteer isthe leaderforthatteam. Use 7 examples. 5. Enter a new organization and associate itto one ormore PANteams. Use 5 examples. 6. Enter a new donor and associate himor her with one ormore donations. Use 7 examples. 7. Enter a new donation and associate it with an organization. Use 7 examples. 8. List the name and phone number ofthe doctor of each client (along with the client’s name). Sort the list by client’slast name,then by first name. 9. List the names of anonymous donorsin the database who are not on the mailing list. Include the total amount donated from each donor. Sort the list by total donation amount in descending order. 10. Retrieve the list of volunteersthat are members ofteamsthatsupport a given client. The client’s IDnumbershould be prompted by the database. Sortthe list by
  • 4. the volunteersjoining date. 11. Retrieve the names and addresses of clients that are supported by the teams that report to the employee with the highestsalary. Sortthe list by the client’slast name. 12. Retrieve the name, address, and total amount donated by donors that are also clients. The list should be sorted by the total amount of the donations, and indicate if each donor wishes to remain anonymous. 13. List the occurrences when a volunteer supports a client that is a different gender. For each occurrence, listthe volunteer’s name, joining date,teamname, and client’s name. Sortthe list by client’s name (last,first),then by teamname,then by volunteer’s name (last,first). 14. Retrieve the list of needs that are considered to be important by multiple clients. An important need has a rank of 7 or higher. 15. Retrieve the effective amount donated by each organization. The effective amount isthe sum of the organization’s donations and the total amount of donations made by all of the individuals affiliated with the organization. 16. Retrieve the names, total expenses, and salaries of the employees with annual salaries that exceed the total amount of his or her expenses. Sortthe list by salary in descending order. 17. Increase the salary by 10% of all half‐time employees who havemultiple teamsreportto them. 18. Reduce by 1 the importance ofthemost commonly requested need for each client. 19. Delete the employee that hasmet with the fewesttotal number oftimes with his or herteams. 20. Delete the volunteer that has worked the least total number of hours. The volunteer should be
  • 5. removed fromallteams as well. 21. (Optional for Bonus Points) Generate a report that lists all of the donations made by donors and organizations. Each row should list the donor name, amount, and date of donation along with a field indicating if the donation was anonymous. The list should be sorted by donation date in decreasing order. There should be a row after eachmonth giving a total ofthe donationsmade in that month (in the same column as the donation date). The donor name in this row should be “Monthly Total”. Similarsubtotalrowsshould exist after each year with the name “Yearly Total”. The lastrow in the reportshould be a grand total with the name “Grand Total”. III. TASKS TOBE PERFORMED Task 1. (15 points)Design an E‐R diagramto representthe systemdescribed in PartI. Task 2. (15 points) Reduce your E‐R diagram to a relational database. Provide a Data Dictionary that liststhe names,types, definitions, and constraints of all attributesin each table. Task 3. (10 points) Construct SQL statements to create the tables and any necessary views, and implement them in Oracle. Implement SQL statements in Oracle that will remove the tables and views as well. Task 4. (80 points) Write example SQL statements for all of the queries defined in part II, and implementtheminOracle. Note thatsome ofthe queriesmay requiremultiple SQL statements.