SELECT MO.MO_ID, MO.ITEM, MO.QTYORDERED, MO.PLANNEDSTARTDATE, BR.MAXLOTSIZE FROM TEMP_MO MO, (SELECT PRODUCED_ITEM_ID ITEM_ID, SITEID, ), , , MAXLOTSIZE)) MAXLOTSIZE FROM IN_ITEMBOMROUTING, TEMP_MO MO , ) ') , ) ') , ) ') AND TRIM(IIS.PROC_TYPE) = 'E