What percentage of your total rep comes from accepted answers (+15's).
Q&A for people interested in the history and origins of science and mathematics
SELECT Users.Id AS [User Link], Count(a.Id) AS [Number of accepts], COUNT(a.Id) * 15 AS [Rep from accepts], MAX(Users.Reputation) AS [Total rep], CAST((COUNT(a.Id) * 15) AS FLOAT) / CAST(MAX(Users.Reputation) AS FLOAT) * 100 AS [Percentage of total rep from accepts] FROM Posts q INNER JOIN Posts a ON q.AcceptedAnswerId = a.Id INNER JOIN Users ON Users.Id = a.OwnerUserId WHERE a.OwnerUserId = ##UserId## GROUP BY Users.Id