streak for days

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computer Graphics

Q&A for computer graphics researchers and programmers

SELECT 
  COUNT(*) amount,
  CAST(MIN(p1.CreationDate)AS DATE) min,
  CAST(MAX(p1.CreationDate)AS DATE) MAX,
  p1.OwnerUserId 
FROM Posts p1
JOIN Posts p2
ON p1.CreationDate=p2.CreationDate+1
GROUP BY p1.OwnerUserId
ORDER BY amount DESC

Enter Parameters

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