Q&A for people looking to bypass life's everyday problems with simple tricks
DECLARE @UserId int = ##UserId## -- IN PROGRESS Find questions I've asked -- Find questions I've provided an answer -- Find questions I've upvoted -- Find questions with an answer I've upvoted SELECT Posts.Id FROM Posts WHERE Posts.OwnerUserId = @UserId and Posts.PostTypeId = 1 -- PostTypeId "1" identifies "question" posts ORDER BY Posts.Id