select top 30 u.id, u.displayname, u.reputation, count(*)...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

-- Enter Query Title
-- Enter Query Description
select top 30 u.id, u.displayname, u.reputation, count(*) edits
from users u
inner join posthistory ph on ph.userid = u.id
inner join posts p on ph.postId = p.id
where ph.PostHistoryTypeId >= 4
 and ph.PostHistoryTypeId <= 6
 and p.OwnerUserId <> ph.UserId
group by u.id, u.displayname, u.reputation
order by edits desc

Enter Parameters

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