Write a script that uses three variables to store 1 the


NOTE: Written in SQL Express. Using "MyGuitarShop database".

Orders Table:

PK. OrderId, FK CustomerID

OrderItems Table:

PK. ItemID, FK OrderID, FK ProductID, Columns: ItemPrice, DiscountAmount, Quantity.

Write a script that uses three variables to store (1) the count of distinct orders made in the Orders table (2) the total amount of sales (sales means the price of the item with discount multiplied by the quantity) made in the OrderItems table and (3) the average sales calculated using the first two variables ($843.3).

Don't include TaxAmount or shipping costs.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a script that uses three variables to store 1 the
Reference No:- TGS02877782

Expected delivery within 24 Hours