Q&A for users of Linux, FreeBSD and other Un*x-like operating systems
SELECT TOP 200 Id AS UserId, Reputation, DATEDIFF(DAY, CreationDate, GETDATE()) AS AccountAge, UpVotes, DownVotes, (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = Users.Id) AS PostCount FROM Users WHERE Reputation > 0 ORDER BY Reputation DESC;