select p.id as [Post Link], p.title, p.answercount, p.sc...

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

-- select * from
-- posts where id = 3774

select p.id as [Post Link], p.title, p.answercount, p.score, q.score
from posts p left join (
  select a.parentid, max(a.score) as score
  from posts a
  where a.posttypeid = 2
  group by a.parentid
) q on p.id = q.parentid
where p.tags like '%<identification-request>%'
and (p.score < 4 or q.score < 3 or q.score is null)
and p.id = 3774

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results