Posts where OwnerUserId

1

Please login or register to vote for this query.

(click on this box to dismiss)

History of Science and Math

Q&A for people interested in the history and origins of science and mathematics

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

DECLARE @UserId int = 470749;

-- 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