CREATE TABLE [dbo].[nm_professions]
(
[nmprof_prof_code] [dbo].[ais_code_short] NOT NULL,
[nmprof_rowver] [timestamp] NOT NULL,
[nmprof_l1] [nvarchar] (256) COLLATE French_CI_AS NOT NULL,
[nmprof_l2] [nvarchar] (256) COLLATE French_CI_AS NULL,
[nmprof_l3] [nvarchar] (256) COLLATE French_CI_AS NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[nm_professions] ADD
CONSTRAINT [CK__nm_professions_nmprof_prof_code__string_pk] CHECK ((len(ltrim(rtrim([nmprof_prof_code])))>(0) AND charindex('*',[nmprof_prof_code])=(0) AND charindex('%',[nmprof_prof_code])=(0)))
GO
ALTER TABLE [dbo].[nm_professions] ADD CONSTRAINT [PK_act_profesions] PRIMARY KEY CLUSTERED  ([nmprof_prof_code]) ON [PRIMARY]
GO
