tagSynonyms
The following
SQL statement returns no records. Thus, the attribute
sourceTagName is shown to be unique:
select
count(*) cnt,
sourceTagName
from
tagSynonyms
group by
sourceTagName
having
count(*) > 1
Both, sourceTagName and targetTagName are found in the tags table. As of 2019-03-19, the table tagSynonyms had 4437 records of which 1387 could be joined to tagSynonyms via sourceTagName and 4365 via targetTagName.
select
count(syn.id) cntSynonyms,
count(tag.id) cntFoundSourceTagNames
from
tagSynonyms syn left join
tags tag on syn.sourceTagname = tag.tagName
select
count(syn.id) cntSynonyms,
count(tag.id) cntFoundTargetTagNames
from
tagSynonyms syn left join
tags tag on syn.targetTagname = tag.tagName