User's posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A for physical fitness professionals, athletes, trainers, and those providing health-related needs

select 
    A.Id, A.PostTypeId, A.Title, A.Body, A.ParentId, A.Tags, A.CreationDate
from 
	Posts A
left join Users U ON A.OwnerUserId = U.id
where
	U.Id = ##UserId## 
	and A.PostTypeId = 1 
union
select 
	A.Id, A.PostTypeId, A.Title, A.Body, A.ParentId, B.Tags, A.CreationDate
from 
	Posts A
left join Users U ON A.OwnerUserId = U.id
right join Posts B ON A.ParentId = B.Id
where
	U.Id = ##UserId## 
	and A.PostTypeId = 2

Enter Parameters

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