IUPUI Microsoft SQL Subqueries Worksheet

Description

Finish the Assigned Queries using Microsoft Access:

1- List the First names and Last names of the patients who visited the health facility more than twice.

Save the query as Q1Visited.

2- Get the patient numbers and birthdays of the patients three years older than the youngest patient recorded in the birthday field.

Help: Use DATEADD() function to calculate the “3 years older than the younger person” in the Inner Query. See the structure of the function below.

DATEADD (Datepart , Number , Date)

1-Datepart is the part of the date you want to be decreased (or increased),

2-Number is the amount to decreased (or increased),

3-Date is the date to which the substruction or addition or multiplication or division will take place.

Save the query as Q2Youngest

3- Get the invoice id, paid status, and amount of those unpaid invoices whose amount is greater than the average invoice amount. Also, display the patients’ first and last names associated with the invoice.

Save the query as Q3MorethanAvarage

Get your college paper done by experts

Do my question How much will it cost?

Place an order in 3 easy steps. Takes less than 5 mins.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *