
CREATE TABLE [dbo].[Category](
	[CategoryID] [int] IDENTITY(1,1) NOT NULL,
	[CategoryName] [nvarchar](50) NOT NULL,
	[SubCategoryOf] [int] NULL,
 CONSTRAINT [PK_Category] PRIMARY KEY CLUSTERED 
(
	[CategoryID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]

go

SET IDENTITY_INSERT [Category] ON
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (1, N'Category 1', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (2, N'Category 2', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (3, N'Category 3', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (4, N'Category 4', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (5, N'Category 5', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (8, N'Category 6', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (9, N'Category 7', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (14, N'Category 8', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (16, N'Category 9', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (18, N'Category 10', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (20, N'Category 11', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (21, N'Category 12', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (23, N'Category 13', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (24, N'Category 14', NULL)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (28, N'Category 15', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (29, N'Category 16', 23)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (30, N'Category 17', 1)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (31, N'Category 18', 16)
INSERT [Category] ([CategoryID], [CategoryName], [SubCategoryOf]) VALUES (32, N'Category 19', 3)
SET IDENTITY_INSERT [Category] OFF
go