Given the following tables: Write a SQL code to provide the…

Given the following tables: Write a SQL code to provide the average length of time (in days) between sale date and shipping date by state. Your report should include the state and the average length of time. Order your list from the largest to the smallest time interval.

Using the database you have created for the health clinic, w…

Using the database you have created for the health clinic, write an SQL code to create a report that lists: the first name, last name, and insurance ID of patients who were seen today, as well as the first name, last name, and specialty of the physician who consulted these patients. Include an alias for every column in the table.      

Part 2You will have from 7-9pm to complete part 2.Use the pa…

Part 2You will have from 7-9pm to complete part 2.Use the paper packet to guide your completion of questions 2-4.Please ensure you have attached all required Excel files before submitting your exam. You will not be able make changes to your exam after submission.Question 2 requires 1 Excel file attachmentQuestion 3 requires 1 Excel file attachmentQuestion 4 requires 3 Excel file attachments