Вопросы и ответы о сайте для программистов
-- 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;