I am self taught on SQL databases and just got ship rush. With UPS World Ship I set up the Import/Export feature pretty simple. Now that I have to actually write the script I am trying to figure out the light grey part and what I need to do to connect the database tables. I have listed my tables below that what each letter match. I think I have the first part write. Any help would be great. Thanks
SELECT
s.ShipmentNumber as RecordID,
s.ShipToAttn as ContactName,
s.ShipToAddress1 as CompanyName,
s.ShipToAddress2 as Address1,
s.ShipToAddress3 as Address2,
s.ShipToCity as City,
s.ShipToState as State,
s.ShipToZip as ZIP,
s.ShipToCountry as Country,
s.CarrierService as Service,
p.Weight as PackageWeight,
i.ProductID as Reference,
p.PO as Reference2,
i.OrderNumber as Reference3,
t.Width as DimWidth,
t.Height as DimHeight,
t.Length as DimLenght,
o.ContactPhoneNumber as Phone,
o.ContactEMailAddress as EMail,
c._Shipping as ReceiverAcct,
FROM ShipmentSummary s
LEFT OUTER JOIN Customers c ON c.CustomerID = o.CustomerID
WHERE s.ShipmentNumber LIKE '%SEARCHPARAM%%'
Customer=c.
OrdersAvailableToShip=o.
ShipmentSummary= s.
ShipmentPack= p.
Shipment Item= i.
Product=t.
SELECT
s.ShipmentNumber as RecordID,
s.ShipToAttn as ContactName,
s.ShipToAddress1 as CompanyName,
s.ShipToAddress2 as Address1,
s.ShipToAddress3 as Address2,
s.ShipToCity as City,
s.ShipToState as State,
s.ShipToZip as ZIP,
s.ShipToCountry as Country,
s.CarrierService as Service,
p.Weight as PackageWeight,
i.ProductID as Reference,
p.PO as Reference2,
i.OrderNumber as Reference3,
t.Width as DimWidth,
t.Height as DimHeight,
t.Length as DimLenght,
o.ContactPhoneNumber as Phone,
o.ContactEMailAddress as EMail,
c._Shipping as ReceiverAcct,
FROM ShipmentSummary s
LEFT OUTER JOIN Customers c ON c.CustomerID = o.CustomerID
WHERE s.ShipmentNumber LIKE '%SEARCHPARAM%%'
Customer=c.
OrdersAvailableToShip=o.
ShipmentSummary= s.
ShipmentPack= p.
Shipment Item= i.
Product=t.