Q&A about the site for students and teachers of all martial arts
DECLARE @UserID Int = ##UserID?9449426## -- 530 SELECT a.Id AS [Post Link], asker.Reputation [Asker Reputation], asker.DisplayName [Asker] FROM Posts a LEFT JOIN Posts q ON a.ParentId = q.Id LEFT JOIN Users asker ON q.OwnerUserId = asker.Id WHERE a.OwnerUserId = @UserID AND a.PostTypeId = 2 AND q.PostTypeId = 1 ORDER BY asker.Reputation DESC