-- WorkOrderComponent Full Query
-- Source: JDESTAGE.F3111_VIEW
-- Destination: WorkOrderComponent_Curr
-- Schedule: Mass/Daily/Hourly

SELECT woc.UNIQUEKEYIDINTERNAL_WMUKID AS UniqueID,
       woc.DOCUMENTORDERINVOICEE_WMDOCO AS WorkOrderNumber,
       TRIM(woc.LOT_WMLOTN) AS LotNumber,
       TRIM(woc.BRANCHCOMPONENT_WMCMCU) AS BranchCode,
       woc.COMPONENTITEMNOSHORT_WMCPIT AS ShortItemNumber,
       woc.QUANTITYTRANSACTION_WMTRQT AS Quantity,
       woc.DATEUPDATED_WMUPMJ AS DateUpdated,
       woc.TIMEOFDAY_WMTDAY AS TimeUpdated
  FROM JDESTAGE.F3111_VIEW woc
 WHERE TRIM(woc.LOT_WMLOTN) IS NOT NULL
