Rev 64 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/* Recent BOMs in Branch */SELECT bo.BOM_ID,bn.BOM_NAME,bo.BOM_VERSION,bo.BOM_LIFECYCLE,bo.IS_READONLY,bo.IS_REJECTEDFROM (/* Head BOMs */SELECT bo.BOM_IDFROM BOMS boWHERE bo.BRANCH_ID = :BRANCH_IDMINUSSELECT bo.PARENT_BOM_ID AS BOM_IDFROM BOMS boWHERE bo.BRANCH_ID = :BRANCH_IDAND bo.BOM_ID != bo.PARENT_BOM_ID) hb,BOM_NAMES bn,BOMS boWHERE bo.BOM_ID = hb.BOM_IDAND bo.BOM_NAME_ID = bn.BOM_NAME_IDORDER BY UPPER(bn.BOM_NAME), UPPER(bo.BOM_VERSION ||' '|| bo.BOM_LIFECYCLE ) DESC