CREATE TABLE [dbo].[nm_indices]
(
[idx_index_code] [dbo].[ais_code_medium] NOT NULL,
[idx_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[idx_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[idx_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_indices] ADD CONSTRAINT [CK__nm_indices_idx_index_code__string_pk] CHECK ((len(ltrim(rtrim([idx_index_code])))>(0) AND charindex('*',[idx_index_code])=(0) AND charindex('%',[idx_index_code])=(0)))
GO
ALTER TABLE [dbo].[nm_indices] ADD CONSTRAINT [PK_nm_indices] PRIMARY KEY CLUSTERED  ([idx_index_code]) ON [PRIMARY]
GO
