Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using AdventureWorkLT2012 3--3. Use the SalesLT.SalesOrderDetail table to list all product sales. Show SalesOrderID and TotalCost for each sale and LineTotal. Compute total cost as
using AdventureWorkLT2012
3--3. Use the SalesLT.SalesOrderDetail table to list all product sales. Show SalesOrderID and TotalCost for each sale and LineTotal. Compute total cost as UnitPrice * (1-UnitPriceDiscount)* OrderQty. Round money values to exactly 2 decimal places. Check your computation the TotalCost you created should match the LineTotal value for each row. a. CAST is the ANSI standard. Write the statement using CAST. (7 points) 542 rows b. Write the statement again using CONVERT. (7 points) 542 rowsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started