Usuários vs. Votantes no SOpt

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow em Português

Q&A for professional and enthusiast programmers

SELECT
  (SELECT COUNT(*) FROM Users) AS TotalUsuarios,
  (SELECT COUNT(*) FROM Users WHERE Reputation >= 15) AS PodemVotar,
  (SELECT COUNT(*) FROM Users WHERE UpVotes + DownVotes > 0) AS Votaram,
  (SELECT COUNT(*) FROM Users WHERE UpVotes + DownVotes > 9) AS VotaramDezVezes,
  (SELECT COUNT(*) FROM Users WHERE Reputation >= 200) AS UsuariosAtivos,
  (SELECT COUNT(*) FROM Users WHERE Reputation >= 200 AND UpVotes + DownVotes > 0) AS AtivosVotaram,
  (SELECT COUNT(*) FROM Users WHERE Reputation >= 200 AND UpVotes + DownVotes > 9) AS AtivosVotaramDezVezes

Enter Parameters

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