CREATE COLUMN TABLE "SBODEMODE"."AWD4" ("AbsEntry" INTEGER CS_INT NOT NULL , "LineId" INTEGER CS_INT NOT NULL , "WTCode" NVARCHAR(4) NOT NULL , "ItemCode" NVARCHAR(50) 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 NOT NULL , PRIMARY KEY ("AbsEntry", "LineId", "LogInstanc")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE UNIQUE CPBTREE INDEX "AWD4_ITEM" ON "SBODEMODE"."AWD4" ( "WTCode" ASC, "ItemCode" ASC, "DateFrom" ASC, "LogInstanc" ASC )