1.       [SQL Week 2 Question 200-504] You

1.       [SQL Week 2 Question 200-504] You want to compute the order total for your shipments.  For all of your shipments, put together a report which contains the following columns.

a.       Sort it ascending on idShipment

b.       Create a new field in the output result called OrderTotal, which is the price per unit multiplied by the order quantity.  You will need to calculate this field in SQL.

Your output will look a little bit like the following.  Your numbers may vary from this example

Need customized help? Order now
user img


12-09-20 | 10:10:15

Select idshipment, CompanyName, Manufacturer, ProductName, Scantag, PricePerUnit, Quantity, PricePerUnit*Quantity as OrderTotal FROM Customer c
join shipment s
On c.idCustomer=s.Customer_idCustomer
Join product p
ON p.idproduct=s.Product_idProduct
order by idShipment asc;

Related Question