/**Begin  **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_EB_SPLIT_CHARGEPERSON') 
 CREATE TABLE T_EB_SPLIT_CHARGEPERSON (
FPKID BIGINT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FBASEDATAID BIGINT DEFAULT 0 NOT NULL
);
EXEC P_ALTERPK 'pk_eb_split_chargeperson', 'T_EB_SPLIT_CHARGEPERSON', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'idx_eb_split_chargeperson_fk') CREATE INDEX idx_eb_split_chargeperson_fk ON T_EB_SPLIT_CHARGEPERSON (fid ASC);

/**End **/