[FAQ] tagged questions' Community Wiki status and timing


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

            q.id                                                    AS [Post Link]
            , q.CreationDate                                        AS [Q Asked Dt]
            , q.CommunityOwnedDate                                  AS [Comm Owned Dt]
            , DATEDIFF (DAY, q.CreationDate, q.CommunityOwnedDate)  AS [Days Crtd before CW]
            , ph.CreationDate                                       AS [FAQ tag added]
            , DATEDIFF (DAY, ph.CreationDate, q.CommunityOwnedDate) AS [Days tggd before CW]
            , q.Tags
FROM        Posts                   q
INNER JOIN  PostTags                pt  ON  q.Id = pt.PostId
INNER JOIN  Tags                    t   ON  t.Id = pt.TagId
    SELECT      TOP 1
    FROM        PostHistory ph
    WHERE       q.Id = ph.PostId
    AND         ph.PostHistoryTypeId    IN (3, 6)  -- Initial tags or tag edit
    AND         ph.Text                 LIKE '%<faq>%'
    ORDER BY    ph.CreationDate
) AS ph
WHERE       q.PostTypeId            = 1
AND         t.TagName               = 'faq'
ORDER BY    q.CreationDate

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results