CREATE TABLE [dbo].[RigheListePrelievo_storico] (
    [DataOraDelete] DATETIME        NOT NULL,
    [CodLista]      NVARCHAR (12)   NOT NULL,
    [UDC]           NVARCHAR (50)   NOT NULL,
    [Qta]           DECIMAL (10, 2) NOT NULL,
    [Proposto]      BIT             NULL,
    [Prelevato]     BIT             NULL
);


GO
CREATE NONCLUSTERED INDEX [i_CodListaUDC]
    ON [dbo].[RigheListePrelievo_storico]([CodLista] ASC, [UDC] ASC) WITH (FILLFACTOR = 95);


GO
CREATE NONCLUSTERED INDEX [i_UDC]
    ON [dbo].[RigheListePrelievo_storico]([UDC] ASC) WITH (FILLFACTOR = 95);

