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' )