Get the tags that are used frequently together for a given tag


Please login or register to vote for this query.

(click on this box to dismiss)

With inputs from this questions :

Stack Overflow

Q&A for professional and enthusiast programmers

select tt.tagname, count(*) [count] 
from posttags pt -- tags on posts
inner join tags st on = pt.tagid -- selection tag
inner join posttags ptt on ptt.postid = pt.postid -- other tags
inner join tags tt on =  ptt.tagid -- other tag names
where st.tagname = ##tagname:string?teradata##
and tt.tagname <> ##tagname:string?teradata##
group by tt.tagname
order by count(*) desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results