links an user or a question to its reviews

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 r.id
     , r.reviewtasktypeid
     , 'site://review/'
       + case r.reviewtasktypeid 
         when 1 then 'suggested-edits'
         when 3 then 'low-quality-posts' 
         else 'NO_IMPL'
         end 
         + '/'
         + cast(r.id as nvarchar) 
         + '|' 
         + cast(r.id as nvarchar)
         as review
     , postid as [Post Link]
     , rt.name
     , rt.description
from reviewtasks r
inner join reviewtasktypes rt on rt.id = r.reviewtasktypeid
inner join posts p on p.id = postid 
where p.owneruserid = 1034448

Enter Parameters

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