North Alabama Database Management Systems SQL Statement Assignment

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.

Related Posts

Quality Writing Features

Price Start $10
  • 24/7 Customer Support
  • All Subject Areas
  • Money-Back Guarantee
  • Timely Delivery
  • Originality report
  • Confidentiality guaranteed

Ordering Homework Writing Service

You can get our ideal online homework help services with four easy steps. All you have to do is inform us of your requirements. Immediately we will match with a specialist in your academic discipline. After that, we will track your order, review it to ensure it meets your requirements, and submit it to your email.


Submit Requirements

Fill in your assignment instructions on the order form


Writer match

Immediately you contact us for homework help; we will assign your assignment to an academic expert.


Quality review

We have a team of editors, who will thoroughly review your assignment, ensuring there are no errors before submission


Get Your Completed Paper

Once we have completed the assignment, we will deliver it to your account. Additionally, we will send a notification to your email.



Budget-friendly writing services



We don’t share our client’s information with a third party



We write every assignment from scratch

Amazing Homework Writing Features

Once you consult us for homework help online services, you will attest to why we are among the USA's best essay writing services.

Read on and find out some of the features that make our services superlative.

Free Homework Writing Services

Free plagiarism checker

You can confirm that the content you get is original for free using our plagiarism checker.

Free samples

We offer unlimited access to our essay homework samples.

Free title page and bibliography

Once you place an order, we format it accordingly without demanding additional charges.

Free unlimited revisions

We offer free unlimited revisions until your assignment is of your desired quality..

Free editing and proofreading

We have a team of specialized editors who review your assignment before submission.

Free customer support

You can track the progress of your homework for free.

Request for Homework Writing Service Today!

We have over 500 homework writing experts, ready and waiting to help you improve your writing skills