Posts where OwnerUserId

0

Please login or register to vote for this query.

(click on this box to dismiss)

Movies and TV Meta

Q&A about the site for movie and tv enthusiasts

-- Dump your own question posts and answer posts (for backup purposes).

DECLARE @UserId int = 805;

-- Get my questions
select Id as [Post Link], body, tags, ParentId, OwnerUserId
from Posts 
where OwnerUserId = @UserID AND ParentId IS NULL

UNION 

-- Get my answers
select Id as [Post Link], body, tags, ParentId, OwnerUserId
from Posts 
where OwnerUserId = @UserID AND ParentId IS NOT NULL
ORDER BY OwnerUserId ASC;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results