select as [Post Link] , p.owneruserid as [User Link]...


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select as [Post Link]
     , p.owneruserid as [User Link]
     , t.tagname
     , (case when t.WikiPostId is null and t.excerptPostId is null
            then 'No Wiki/NoExcerpt'
            when t.WikiPostId is null 
            then 'No Wiki'
            when t.excerptPostId is null 
            then 'No Excerpt'
            else '???'
            end) as [What is missing]
from posts p -- all posts ...
inner join posttags pt -- with their all tags ...
        on pt.postid = coalesce(p.parentid, -- for answers, use the question
inner join tags t -- find a single tag
        on = pt.tagid 
where p.owneruserid = ##userid:int?6083675## -- post belongs to a user
and (t.excerptPostId is null -- where the excerpt foreignkey is null
or t.WikiPostId is null) -- or the wiki foreignkey is null

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results