suggested edits where suggested edit user is missing

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

declare @question int = 1;
declare @answer int = 2;

select
  se.creationdate,
  se.id as [Suggested Edit Link],
  p.id as [Post Link],
  u.displayname
from
  suggestededits as se
  left join posts as p on p.id = se.postid
  left join users as u on u.id = se.owneruserid
where
  se.owneruserid is not null
  and  u.id is null
  and p.posttypeid in(@question, @answer)
  and se.creationdate > DATEADD(week, -1, getdate()) 
order by
  se.creationdate desc

Enter Parameters

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