I wish to create a constraint that state as below
Code.CodeTable ( CodeID smallint, CategoryID smallint,....) --> Parent Table
Admin.Document( DocumentTypeID smallint,.....) --> Child Table
The FK will be Admin.Document.DocumentTypeID map with Code.CodeTable.CodeID
I wish to have the constraint that only check Code.CodeTable.CodeID
which the Code.CodeTable.CategoryID = 15
only.