Top deleted users, with dates of first and last posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

Italian Language

Q&A for students, teachers, and linguists wanting to discuss the finer points of the Italian language

SELECT TOP 1000 p.OwnerDisplayName, 
    SUM(p.Score) AS [Total Score], 
    COUNT(p.Id) AS [Number of Posts], 
    MIN(p.CreationDate) as [First Post],
    MAX(p.CreationDate) as [Last Post],
    DATEDIFF(day, MIN(p.CreationDate), MAX(p.CreationDate)) as Duration
FROM Posts p
WHERE p.OwnerUserId IS NULL
GROUP BY p.OwnerDisplayName
having SUM(p.Score) > 1000
ORDER BY MAX(p.CreationDate) DESC

Enter Parameters

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