select tt.tagname, count(*) [count] from posttags pt -- t...

0

Please login or register to vote for this query.

(click on this box to dismiss)

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 st.id = pt.tagid -- selection tag
inner join posttags ptt on ptt.postid = pt.postid -- other tags
inner join tags tt on tt.id =  ptt.tagid -- other tag names
where st.tagname = ##tagname:string?pandas##
and tt.tagname <> ##tagname:string?pandas##
group by tt.tagname
order by count(*) desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results