SELECT hour, COUNT(*) activity FROM ( SELECT UserId, DATE...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science Meta

Q&A about the site for scientists using computers to solve scientific problems

SELECT
  hour,
  COUNT(*) activity
FROM
(
  SELECT UserId, DATEPART(hh, v.CreationDate) as hour
  from SuggestedEditVotes v
  join Users on Users.Id = v.UserId
  where Users.Reputation >= 3000 AND
        ((DATEPART(dw, v.CreationDate) + @@DATEFIRST) % 7) IN (0, 1)
) a
GROUP BY HOUR
ORDER BY HOUR

Enter Parameters

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