CREATE TABLE MNP_TASK_PIC 
(
   DATA_TASK              DATE NOT NULL,
   ID_OPERATORE_DON       VARCHAR2 (4) NOT NULL,
   ID_OPERATORE_REC       VARCHAR2 (4) NOT NULL,
   TOT_RICH_ACCETTATE     NUMBER (5),
   TOT_RICH_WAITINGLIST   NUMBER (5),
   TOT_RICH_OF            NUMBER (5),
   DATA_START             DATE,
   DATA_END               DATE,
   FLAG_RESET             NUMBER (1) DEFAULT 0 NOT NULL
)
TABLESPACE USR
PCTUSED 40
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (INITIAL 128 M
         NEXT 10 M
         MINEXTENTS 1
         MAXEXTENTS UNLIMITED
         PCTINCREASE 0
         FREELISTS 1
         FREELIST GROUPS 1
         BUFFER_POOL DEFAULT)
LOGGING
NOCACHE
NOPARALLEL
NOMONITORING;


CREATE UNIQUE INDEX MNP.IDX_TASKPIC_1
   ON MNP_TASK_PIC (DATA_TASK, ID_OPERATORE_DON,ID_OPERATORE_REC)
   LOGGING
   TABLESPACE TAB_IDX_SMALL
   PCTFREE 10
   INITRANS 2
   MAXTRANS 255
   STORAGE (INITIAL 128 M
            NEXT 10 M
            MINEXTENTS 1
            MAXEXTENTS UNLIMITED
            PCTINCREASE 0
            FREELISTS 1
            FREELIST GROUPS 1
            BUFFER_POOL DEFAULT)
   NOPARALLEL;