select top 1000 p.id as [Post Link] , min(tags) from pos...

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

-- tagname: single tag 

select top 1000 
       p.id as [Post Link]
     , min(tags)
from posts p
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid
inner join posttags ptname on ptname.postid = p.id
inner join tags tname on tname.id = ptname.tagid
where tname.tagname = ##tagname:string?java##
group by p.id
having count(*) = 1
order by min(lastactivitydate) desc

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results