USE [Users_mdb]
GO

IF NOT EXISTS( SELECT * FROM [dbo].[tblSystemQueries] WHERE nID=39 AND [nRow]=1)
	INSERT [dbo].[tblSystemQueries] ([nID], [tName], [tTest], [tValue], [tAndOr], [nLevel], [nParent], [nChild], [nBrother], [nRow], [nDtsFieldID], [nValueType]) 
	VALUES (39, N'Category', N'=', N'Student', NULL, NULL, NULL, NULL, NULL, 1, 21, NULL);

IF NOT EXISTS( SELECT * FROM [dbo].[tblSystemQueries] WHERE nID=40 AND [nRow]=1)
	INSERT [dbo].[tblSystemQueries] ([nID], [tName], [tTest], [tValue], [tAndOr], [nLevel], [nParent], [nChild], [nBrother], [nRow], [nDtsFieldID], [nValueType]) 
	VALUES (40, N'Category', N'=', N'Teacher', NULL, NULL, NULL, NULL, NULL, 1, 21, NULL);
