CREATE TABLE [dbo].[nm_positions]
(
[pos_position_code] [dbo].[ais_code_short] NOT NULL,
[pos_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[pos_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[pos_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[pos_sys] [bit] NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[nm_positions] ADD 
CONSTRAINT [PK_nm_positions] PRIMARY KEY CLUSTERED  ([pos_position_code]) ON [PRIMARY]
ALTER TABLE [dbo].[nm_positions] ADD
CONSTRAINT [CK__nm_positions_pos_position_code__string_pk] CHECK ((len(ltrim(rtrim([pos_position_code])))>(0) AND charindex('*',[pos_position_code])=(0) AND charindex('%',[pos_position_code])=(0)))
GO
