CREATE TABLE [dbo].[grpusg_groups]
(
[usgg_group_code] [dbo].[ais_code_short] NOT NULL,
[usgg_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[usgg_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[usgg_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[grpusg_groups] ADD
CONSTRAINT [CK__grpusg_groups_usgg_group_code__string_pk] CHECK ((len(ltrim(rtrim([usgg_group_code])))>(0) AND charindex('*',[usgg_group_code])=(0) AND charindex('%',[usgg_group_code])=(0)))
GO
ALTER TABLE [dbo].[grpusg_groups] ADD CONSTRAINT [PK_grpusg_groups] PRIMARY KEY CLUSTERED  ([usgg_group_code]) ON [PRIMARY]
GO
