streak for days

0

Please login or register to vote for this query.

(click on this box to dismiss)

EOS.IO

Q&A for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO

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