question and answers with tags

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

select q.id as [Post link]
     , acc.id as [Answer Link],
     q.OwnerUserId AS 'User ID',
     q.PostTypeId AS 'Post Body'
     -- , t.tagname
     --, left(q.body,200) as question
   --  , left(acc.body,200) as answer
from posts q
inner join posttags pt
        on pt.postid = q.id 
inner join tags t 
        on t.id = pt.tagid
inner join posts acc 
        on acc.id = q.acceptedanswerid 
where tagname  = 'java'
and q.posttypeid = 1
order by q.id
, acc.score,q.OwnerUserId,q.PostTypeId

Enter Parameters

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