IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_WBS_GROUP1') CREATE INDEX IDX_FMM_WBS_GROUP1 ON T_PMTS_WBS ( FDELETESTATUS,FRELEASESTATUS);
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_WBS_PROJECT') CREATE INDEX IDX_FMM_WBS_PROJECT ON T_PMTS_WBS ( FPROJECTID);
