1800radiatoranalytics of 1-800 Radiator-SQL Codes
4/13/2017 - 6:34 PM

PO (Shipping) Tracking Numbers (from ASN)

PO (Shipping) Tracking Numbers (from ASN)

SELECT PM.POID 
	,PM.VendorID
	,V.VendorName 
	,PM.POOrderDate
	,PM.Warehouseid
	,ASN.AsnShipped
	,ASN.AsnCarrier
	,ASN.AsnTrackingNo
FROM gxWizmo_24.dbo.POMASTER PM
	--JOIN gxWizmo_24.dbo.POMASTERPODETAIL PMD
	--  ON PM.POID = PMD.POID
	LEFT JOIN gxWizmo_24.dbo.ASN ASN
	  ON PM.POID = ASN.POID
	JOIN gxWizmo_24.dbo.VENDOR V
	  ON PM.VendorID = V.VendorId
WHERE PM.POOrderDate >= GETDATE() - 180