SELECT TOP 50000 p.OwnerUserId ...


Please login or register to vote for this query.

(click on this box to dismiss)

Drones and Model Aircraft Meta

Q&A for experienced flyers, pilots, and builders of drones and model aircraft

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

Switch to main site
loading Hold tight while we fetch your results