P3 - Exercise
P3 - Exercise
Display SalesOrderID, OrderQty, And UnitPrice from the SalesOrderDetail table where a similar unit
price nedds to be marked with an identical value
3. Display the customer ID, name, and sales person ID for all the stores. According to the requirement,
only first 15 letters of the customer name should be displayed.
4. Display the total unit price and the total amount collected after selling the products,774 and 777. In
addition, calculate the total amount collected from these two products.
5. A report containing the sales order ID and the average value of the total amount, which is greater
than $5.000 is required in the following format.
Sales Order ID Average Value
6. The following SQL Query containing the COMPUTE BY clause generates errors. What are possible
causes of such errors?
8. Display the EmployeeID and the HireDate of the employees from the Employee table. The month and
the year need to be displayed.
10. Display the maximum,minimum and the average rate of sales orders