CREATE COLUMN TABLE "IMCYC"."WTD5" ("AbsEntry" INTEGER CS_INT NOT NULL , "LineId" INTEGER CS_INT NOT NULL , "WTCode" NVARCHAR(4) NOT NULL , "ExpnsCode" INTEGER CS_INT NOT NULL , "DateFrom" LONGDATE CS_LONGDATE NOT NULL , "DateTo" LONGDATE CS_LONGDATE, "DataSource" CHAR(1) CS_FIXEDSTRING DEFAULT 'N', "UpdateDate" LONGDATE CS_LONGDATE, "LogInstanc" INTEGER CS_INT DEFAULT 0, PRIMARY KEY INVERTED VALUE ("AbsEntry", "LineId")) UNLOAD PRIORITY 5  AUTO MERGE ;
ALTER TABLE "IMCYC"."WTD5" WITH PARAMETERS ('CONCAT_ATTRIBUTE'=('ALLOW_NULL_AS_COMPONENT=YES', '$uc_WTD5_EXPNSCODE$','WTCode','ExpnsCode','DateFrom'));
CREATE UNIQUE INDEX "WTD5_EXPNSCODE" ON "IMCYC"."WTD5" ( "WTCode" ASC, "ExpnsCode" ASC, "DateFrom" ASC )