 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BOTP_CONVERT_WATCH_UNIKEY') CREATE UNIQUE INDEX IDX_BOTP_CONVERT_WATCH_UNIKEY ON T_BOTP_CONVERT_WATCH ( FUNIQUEKEY );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BOTP_BF_WATCH_UNIKEY') CREATE UNIQUE INDEX IDX_BOTP_BF_WATCH_UNIKEY ON T_BOTP_WRITEBACK_WATCH ( FUNIQUEKEY );

