 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MFTORDER_ORGIDFID') CREATE INDEX IDX_POM_MFTORDER_ORGIDFID ON T_POM_MFTORDER ( FORGID ,FID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MFTORDERENTRY_S_ORGFID') CREATE INDEX IDX_MFTORDERENTRY_S_ORGFID ON T_POM_MFTORDERENTRY_S ( FORGID ,FENTRYID );
