select top 5 p.Id, p.tags from posts p inner join ( selec...

0

Please login or register to vote for this query.

(click on this box to dismiss)

History of Science and Math Meta

Q&A about the site for people interested in the history and origins of science and mathematics

--1
select top 5
    p.Id, 
    p.tags 
from 
    posts p
inner join (
    select 
        PostId 
    from 
        posttags 
    where 
        tagid in (4, 2) 
    group by 
        PostId 
    having 
        count(PostId) > 1
) sep on p.Id = sep.PostId
order by p.id

Enter Parameters

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