CREATE TABLE [dbo].[nm_brands]
(
[brd_brand_code] [dbo].[ais_code_short] NOT NULL,
[brd_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[brd_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[brd_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[nm_brands] ADD
CONSTRAINT [CK__nm_brands_brd_brand_code__string_pk] CHECK ((len(ltrim(rtrim([brd_brand_code])))>(0) AND charindex('*',[brd_brand_code])=(0) AND charindex('%',[brd_brand_code])=(0)))
GO
ALTER TABLE [dbo].[nm_brands] ADD CONSTRAINT [PK_nm_brands] PRIMARY KEY CLUSTERED  ([brd_brand_code]) ON [PRIMARY]
GO
