プログラマーとプログラミングに熱心な人々のための質問と回答
SELECT Self.Title, Self.ParentId, Parent.Title, Self.Body FROM Posts AS Self, Posts AS Parent, Users WHERE Self.OwnerUserId=Users.Id AND (Self.ParentId = Parent.Id OR Parent.Id=0) AND Users.Id=##UserId##