select top(10) * from Posts pst where exists (select PostId

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

select top(10) *
  from Posts pst
 where exists (select PostId
                 from PostTags ptg
                 join Tags tg on ptg.TagId = tg.Id
                where pst.Id = ptg.PostId
                  and tg.TagName = 'html'
                )
   and exists (select PostId
                 from PostTags ptg
                 join Tags tg on ptg.TagId = tg.Id
                where pst.Id = ptg.PostId
                  and tg.TagName = 'css'
                )

Enter Parameters

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