CREATE COLUMN TABLE "SBODEMOPT"."ATCD3" ("AbsId" INTEGER CS_INT NOT NULL , "Tcd2Id" INTEGER CS_INT NOT NULL , "EfctFrom" LONGDATE CS_LONGDATE NOT NULL , "EfctTo" LONGDATE CS_LONGDATE, "TaxCode" NVARCHAR(8), "TcdId" INTEGER CS_INT, "LogInstanc" INTEGER CS_INT NOT NULL , PRIMARY KEY ("AbsId", "LogInstanc")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE UNIQUE CPBTREE INDEX "ATCD3_TCD3_UNI" ON "SBODEMOPT"."ATCD3" ( "Tcd2Id" ASC, "EfctFrom" ASC, "LogInstanc" ASC )