Questions with a particular tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

select p.id as [Post Link],p.tags, count(*) as counttags
from posts p
inner join posttags pt
  on p.id=pt.postid
where p.id in
(

  select p.id from posts p
  inner join posttags pt
    on p.id=pt.postid
  inner join tags t 
    on pt.tagid=t.id
  where posttypeid=1
  and tagname = ##tagname##

)
group by p.id, p.title, p.tags
order by count(*)

Enter Parameters

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