Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Click Start/All Programs/MS SQL Server 2014 R2/SQL Server Management Studio. Server type: Database Engine Server name: 142.147.68.56 Authentication: SQL Server Authentication Login: studentuser Password: !BSA3620$
- Click Start/All Programs/MS SQL Server 2014 R2/SQL Server Management Studio.
- Server type: Database Engine
- Server name: 142.147.68.56
- Authentication: SQL Server Authentication
- Login: studentuser
- Password: !BSA3620$
- Click the Connect button
- Select New Query and choose the Healthcare database
- How many patients have never made an appointment at any of the hospitals?
- How many appointments were made with physicians who have a specialty listed as “Plastic surgery” that were scheduled at the “Everton Memorial Hospital?”
- Which hospital employs exactly 4 physicians who are surgeons? Hint: look for “surgery” within the specialty field.
- Which day of the week is most popular based on the number of appointments made at “Everton Memorial Hospital?”
- How many patients of the “Nashville Community Hospital” do not have a phone number with a 615 area code?
- How many patients have made at least 13 appointments?
- How many patients are between 10 and 17 years old and have made at least one appointment at “Anderson-Dade Hospital?” (Hint: 10 and 17 should be included in your results.)
- What is the average difference in time (in minutes) between the time an appointment was supposed to start and a patient’s arrive time for the “Everton Memorial Hospital” clinic?
- difference in time between his/her patients’ arrive time and their depart time?
- What is the age of the oldest patient who made an appointment at the “Nashville Community Hospital?”
- Which hospital generated $109,729 in revenue, which is based on physicians’ visit rate and their number of appointments?
- By how much did annual revenue increase at the “Johnson Memorial Hospital” for the years 2014 to 2015?
- How many appointments were made during the years 2013-2016?
- Which physician charged the lowest average hourly rate and what was that hourly rate? (Hint: VisitRate / ((ApptTime – ApptDepartTime) / 60)
- How many patients arrive, on average, 25 minutes late or later to their scheduled appointment start time? (Hint: make sure your results show unique patients.)
Assignment Data File:
Download (and rename) this document as [YourLastName]-ProjectReport.docx
Instructions: Answer the following queries using the HealthCare database. You will submit your answers on Blackboard/Healthcare SQL Assignment.
Select Statement:
Select Statement:
Select Statement:
Select Statement:
Select Statement:
Select Statement:
STATE 8 StateAbbrv StateName: SPECIALTY SpecialtyName CO HOSPITAL HospitalD HospitalName 8 Hospital Street HospitalCity HospitalState HospitalZip HospitalURL PHYSICIAN PhysID PhysFName PhysLName PhysDegree PhysPhone Hospital D SpecialtyName VisitRate A TO PATIENT PatientID PatientFName Patient Name PatientDOB PatientPhone: PatientState 8 APPOINTMENT ApptNumber ApptDate ApptTime ApptArrive Time ApptDepartTime PhysID PatientID
Step by Step Solution
★★★★★
3.30 Rating (150 Votes )
There are 3 Steps involved in it
Step: 1
To answer the queries you can use SQL statements with the given database schema Here are the select statements for each query 1 How many patients have never made an appointment at any of the hospitals ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started