Table tags:
article_id tag
1 Language
1 Java
1 c++
2 Language
2 c++
3 c++
and how can I write SQL(s) query(s) to make the data like below:
Table tags_relations:
tag1 tag2 relations_degree
Language C++ 2
Language Java 1
note: if the tag refers to the same article then the relations_degree + 1
The purpose of this approach is to calculate the relations between tags, can any one help me on this ?
Thanks a lot.