CREATE COLUMN TABLE "SBODEMODE"."KPS1" ("KpsCode" NVARCHAR(15) NOT NULL , "LineNum" INTEGER CS_INT NOT NULL , "KpiName" NVARCHAR(100) NOT NULL , "KpiValue1" DECIMAL(21,6) CS_FIXED, "KpiValue2" DECIMAL(21,6) CS_FIXED, "KpiValue3" DECIMAL(21,6) CS_FIXED, "KpiValue4" DECIMAL(21,6) CS_FIXED, "KpiValue5" DECIMAL(21,6) CS_FIXED, "KpiValue6" DECIMAL(21,6) CS_FIXED, "KpiValue7" DECIMAL(21,6) CS_FIXED, "KpiValue8" DECIMAL(21,6) CS_FIXED, "KpiValue9" DECIMAL(21,6) CS_FIXED, "KpiValue10" DECIMAL(21,6) CS_FIXED, "KpiValue11" DECIMAL(21,6) CS_FIXED, "KpiValue12" DECIMAL(21,6) CS_FIXED, "KpiValue13" DECIMAL(21,6) CS_FIXED, "KpiValue14" DECIMAL(21,6) CS_FIXED, "KpiValue15" DECIMAL(21,6) CS_FIXED, "KpiValue16" DECIMAL(21,6) CS_FIXED, "KpiValue17" DECIMAL(21,6) CS_FIXED, "KpiValue18" DECIMAL(21,6) CS_FIXED, "KpiValue19" DECIMAL(21,6) CS_FIXED, "KpiValue20" DECIMAL(21,6) CS_FIXED, "KpiValue21" DECIMAL(21,6) CS_FIXED, "KpiValue22" DECIMAL(21,6) CS_FIXED, "KpiValue23" DECIMAL(21,6) CS_FIXED, "KpiValue24" DECIMAL(21,6) CS_FIXED, "KpiValue25" DECIMAL(21,6) CS_FIXED, "KpiValue26" DECIMAL(21,6) CS_FIXED, "KpiValue27" DECIMAL(21,6) CS_FIXED, "KpiValue28" DECIMAL(21,6) CS_FIXED, "KpiValue29" DECIMAL(21,6) CS_FIXED, "KpiValue30" DECIMAL(21,6) CS_FIXED, PRIMARY KEY INVERTED VALUE ("KpsCode", "LineNum")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE UNIQUE CPBTREE INDEX "KPS1_NAME" ON "SBODEMODE"."KPS1" ( "KpsCode" ASC, "KpiName" ASC )