M
mscertified
I have a structure (table) called a RULE. A Rule consists of a unique
combination of Title, Chapter, Article, Topic and SubTopic.
I also have ISSUES. Issues can be related to an individual rule or also to
any level of the rule. i.e. an issue can be related to an article or chapter.
What is the best way to do this? I will need to be able to find all Issues
for a Rule and all rules for an Issue.
What I have now is a Rule table and an Issue table and an IssueRuleXref table.
The IssueRuleXref table consists of Title, Chapter, Article, Topic and
SubTopic.
If the issue is related to a Chapter, only the Title and Chapter are filled
in. If the issue is related to an Article, only the Title, Chapter and
Article are filled in. This works but some of the queries to find Issues
related to a rule are very cumbersome.
combination of Title, Chapter, Article, Topic and SubTopic.
I also have ISSUES. Issues can be related to an individual rule or also to
any level of the rule. i.e. an issue can be related to an article or chapter.
What is the best way to do this? I will need to be able to find all Issues
for a Rule and all rules for an Issue.
What I have now is a Rule table and an Issue table and an IssueRuleXref table.
The IssueRuleXref table consists of Title, Chapter, Article, Topic and
SubTopic.
If the issue is related to a Chapter, only the Title and Chapter are filled
in. If the issue is related to an Article, only the Title, Chapter and
Article are filled in. This works but some of the queries to find Issues
related to a rule are very cumbersome.