CREATE COLUMN TABLE "SBODEMODE"."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" NVARCHAR(1) DEFAULT 'N', "UpdateDate" LONGDATE CS_LONGDATE, "LogInstanc" INTEGER CS_INT DEFAULT 0, PRIMARY KEY ("AbsEntry", "LineId")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE UNIQUE INDEX "WTD5_EXPNSCODE" ON "SBODEMODE"."WTD5" ( "WTCode" ASC, "ExpnsCode" ASC, "DateFrom" ASC )