SELECT "" AS [S/N], ShipmentData.stCountry, ShipmentData.siShipmentReference1, [QV Data].[Manifest Date], ShipmentData.siShipmentReference2, ShipmentData.siShipmentID, ShipmentData.siNumberOfPackages, ShipmentData.siBillableWeight, DateDiff("d",[QV Data].[Manifest Date],[QV Data].[Scheduled Delivery Date]) AS Committed, DateDiff("d",[QV Data].[Manifest Date],[QV Data].[Date Delivered]) AS Actual, [QV Data].[Date Delivered], [QV Data].[Delivery Time], [QV Data].[Signed By], [QV Data].[Exception Description], [QV Data].[Exception Resolution], [QV Data].[Exception Status Description]
FROM ShipmentData INNER JOIN [QV Data] ON ShipmentData.siShipmentID = [QV Data].[Tracking Number]
GROUP BY "", ShipmentData.stCountry, ShipmentData.siShipmentReference1, [QV Data].[Manifest Date], ShipmentData.siShipmentReference2, ShipmentData.siShipmentID, ShipmentData.siNumberOfPackages, ShipmentData.siBillableWeight, [QV Data].[Date Delivered], [QV Data].[Delivery Time], [QV Data].[Signed By], [QV Data].[Exception Description], [QV Data].[Exception Resolution], [QV Data].[Exception Status Description], [QV Data].[Scheduled Delivery Date];
|