SELECT TOP 50000 p.OwnerUserId ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Skeptics

Q&A for scientific skepticism

SELECT      TOP 50000
            p.OwnerUserId                                       AS [User]
            , p.Id                                              AS [Post Id]
            , CASE WHEN p.PostTypeId = 1 THEN 'Q' ELSE 'A' END  AS [Type]
            , COALESCE (p.Title, ownr.Title)                    AS [Title]
            , p.Body
            , COALESCE (p.Tags, ownr.Tags)                      AS [Tags]
            , p.CreationDate
FROM        Posts p
LEFT JOIN   Posts ownr      ON ownr.ID = p.ParentId
where         p.PostTypeId    IN (1, 2)  -- Question, answer
AND p.PostTypeId=1
ORDER BY    p.OwnerUserId DESC,  p.CreationDate

Enter Parameters

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