SQL assignment – you can use the free link https://sqliteonline.com/ Attached assignment As a new intern working in a small music company, you have been asked to look into the database and generate mo


SQL assignment – you can use the free link https://sqliteonline.com/

Attached assignment

As a new intern working in a small music company, you have been asked to look into the database and generate monthly reports of items sold in the store. Copy and run the code provided to create the tables for the database. Write simple SQL queries that will display output according to the requirements below.

Note: For the script provided: run each table script individually, NOT the entire script at once.

1.     Display an output of customer details. The output fields should be displayed in order and exactly as shown here (with the spaces): Last Name, First Name, City, and Phone #. (2 Marks)

2.     Display an output of the order details. The output fields should be displayed in order and exactly as: Order ID, Quantity Ordered, Order Date, and Date Shipped. (2 Marks)

3.     Display an output of the customers and order details. The output fields should be displayed in order and exactly as: Last Name, First Name, Item ID, Title of Song, Artist, Quantity, and Unit Price. The list should be ordered in descending order based on last name. (4 Marks)

4.     Given the output from above, use your statistical skills to calculate the average, median, and mode of the unit price. Show your work. (2 Marks)