CREATE TABLE "TEMP_PERIOD_CHANGES"
  (
    "RES_ID" VARCHAR(20),
    "STARTPER" DATE,
    "ENDPER" DATE,
    "DONE" NUMERIC(1,0) DEFAULT 0
  );
GO

    alter table TEMP_PERIOD_CHANGES
        add constraint PERIOD_DONE_NOT_NULL DEFAULT 0 FOR [DONE]
GO
