Has the top users' first post been a question or an answer?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

WITH FirstPosts AS (
    SELECT OwnerUserId as SEUser,
           Min(Id) as Post
    FROM Posts
    WHERE PostTypeId = 1 or PostTypeId = 2
    GROUP BY OwnerUserId
) 

SELECT TOP 500
       FirstPosts.SEUser as [User Link],
       FirstPosts.Post as [Post Link],
       [Post type] = case PostTypeID when 1 then 'Question'
                                     when 2 then 'Answer'
                                     else '???'
                                     end,
       Reputation
FROM FirstPosts JOIN Users on FirstPosts.SEUser = Users.Id
                JOIN Posts on FirstPosts.Post = Posts.Id
ORDER BY Reputation desc

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results