Hi,
I have a table with two fields, articleID and relatedArticleID. They are both primary keys to prevent duplicate combinations of the pair. This is linked, one-to-many, to the articles table.
I want to find where a relationship only exists in one direction but not the other. For example, in the following table, article 1 has three related articles, but only two of the articles reference article 1 as a related article. I want to find row #2 so that I can determine whether or not to create the reverse.
row# articleID relatedArticleID
1 1 2
2 1 3
3 1 4
4 2 1
5 4 1
Any advice on how to go about this? I feel like the solution is likely simple, but I've been banging my head against the wall...
Many thanks.
Tim
I have a table with two fields, articleID and relatedArticleID. They are both primary keys to prevent duplicate combinations of the pair. This is linked, one-to-many, to the articles table.
I want to find where a relationship only exists in one direction but not the other. For example, in the following table, article 1 has three related articles, but only two of the articles reference article 1 as a related article. I want to find row #2 so that I can determine whether or not to create the reverse.
row# articleID relatedArticleID
1 1 2
2 1 3
3 1 4
4 2 1
5 4 1
Any advice on how to go about this? I feel like the solution is likely simple, but I've been banging my head against the wall...
Many thanks.
Tim