Finalizing questions, generating report
This commit is contained in:
parent
d99a565bfb
commit
d6bb9f87c9
BIN
Schrick-Noah_Case-Study-4.docx
Normal file
BIN
Schrick-Noah_Case-Study-4.docx
Normal file
Binary file not shown.
BIN
Schrick-Noah_Case-Study-4.pdf
Normal file
BIN
Schrick-Noah_Case-Study-4.pdf
Normal file
Binary file not shown.
@ -41,13 +41,31 @@ SELECT ShipmentID, ShipperName, ShipperInvoiceNumber, ArrivalDate
|
|||||||
;
|
;
|
||||||
|
|
||||||
/* *** CS4-MI.G *** */
|
/* *** CS4-MI.G *** */
|
||||||
|
SELECT MAX(InsuredValue) AS MaxInsuredValue,
|
||||||
|
MIN(InsuredValue) AS MinInsuredValue
|
||||||
|
FROM SHIPMENT
|
||||||
|
;
|
||||||
|
|
||||||
/* *** CS4-MI.H *** */
|
/* *** CS4-MI.H *** */
|
||||||
|
SELECT AVG(InsuredValue) AS AvgInsuredValue
|
||||||
|
FROM SHIPMENT
|
||||||
|
;
|
||||||
|
|
||||||
/* *** CS4-MI.I *** */
|
/* *** CS4-MI.I *** */
|
||||||
|
SELECT COUNT(*) AS NumShipments
|
||||||
|
FROM SHIPMENT
|
||||||
|
;
|
||||||
|
|
||||||
/* *** CS4-MI.J *** */
|
/* *** CS4-MI.J *** */
|
||||||
|
SELECT ItemID, Description, Store,
|
||||||
|
LocalCurrencyAmount * ExchangeRate AS USCurrencyAmount
|
||||||
|
FROM ITEM
|
||||||
|
;
|
||||||
|
|
||||||
/* *** CS4-MI.K *** */
|
/* *** CS4-MI.K *** */
|
||||||
|
SELECT City, Store
|
||||||
|
FROM ITEM
|
||||||
|
GROUP BY City, Store
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user