CREATE TABLE [dbo].[idx_indices_values]
(
[idxv_index_code] [dbo].[ais_code_medium] NOT NULL,
[idxv_date] [date] NOT NULL,
[idxv_value] [dbo].[ais_decimal4] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[idx_indices_values] ADD CONSTRAINT [PK_indices_values] PRIMARY KEY CLUSTERED  ([idxv_index_code], [idxv_date]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[idx_indices_values] ADD CONSTRAINT [FK_idx_indices_values_nm_indices] FOREIGN KEY ([idxv_index_code]) REFERENCES [dbo].[nm_indices] ([idx_index_code])
GO
