SELECT Hour, COUNT(*) Activity FROM ( SELECT DISTINCT Use...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Poker Meta

Q&A about the site for serious players and enthusiasts of poker

SELECT
  Hour,
  COUNT(*) Activity
FROM
(
  SELECT DISTINCT
    UserId,
    DATEPART(hh, v.CreationDate) + CAST(DATEPART(mi, v.CreationDate)/10 AS FLOAT)/6 AS Hour
  FROM SuggestedEditVotes v
  INNER JOIN Users ON Users.Id = v.UserId
  WHERE Users.Reputation >= 3000 AND
        ((DATEPART(dw, v.CreationDate) + @@DATEFIRST) % 7) NOT IN (0, 1)
) X
GROUP BY Hour
ORDER BY Hour

Enter Parameters

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