02 Jul North Alabama Database Management Systems SQL Statement Assignment
Question Description
Statements for each tasks. Attached is the text to create the database.
For each patient, display his or her last name, first name, and the name of his or her doctor.
For each pediatrics patient, display his or her ID and his or her doctor’s ID and name.
For each doctor, display the name and the name of the doctor’s supervisor in alphabetic order of supervisor’s name. Include column aliases for clarity. Note: Check for accuracy.
For each doctor in one of the two areas entered by the user, show the doctor’s name and annual salary (including bonus), and his or her supervisor’s name and annual salary. Note: Try Pediatrics and Orthopedics as the two areas.
For patients whose last name matches the name entered by the user, display their first name, phone number, and doctor’s name. Note: Try Davis.
Display the number of doctors that currently have patients. Note: Check for accuracy.
Show the total annual bonus earned by doctors hired in the year entered by the user. Note: Try 1998.
Display the lowest and highest charge per appointment. Note: Use MAX and MIN functions.
Display the number of patients currently assigned to each doctor.
For each area of specialization, display the number of patients from each town represented.
For all areas with at least two doctors, display the average charge per appointment, rounded to the nearest dollar and appropriately formatted.
For all doctors except numbers 432 and 509, display the average balance owned by their patients in ascending order. Ignore groups with a total of less than $100 owned.
Display the names of doctors in Dr. Harrison’s area. Note: The piece of information that needs to be determined first is Dr. Harrison’s area).
Display the names and salaries of doctors who earn more than the average salary.
Display the names of doctors who are also supervisors.
Display the names and monthly salaries of doctors who earn more than all of the doctors in pediatrics. Note: Use the ALL operator.
Display the names and charges per appointment for doctors that charge more per appointment than any one of the doctors in neurology. Note: Use the ANY operator.
Display the names of doctors that have the same area and charge per appointment as Dr. Lewis does. Note: Dr. Lewis should not be in your output.
Show the IDs of the patients who live in the same town as patient number 168. Note: Check for accuracy.
Susan Porter has canceled her next appointment. In order to try to fill her spot, display the names and next appointment dates of patients who have appointments with her doctor on a later date.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Wridemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.