Votes on Your Posts Aggregations

0

Please login or register to vote for this query.

(click on this box to dismiss)

Pets

Q&A for pet owners, caretakers, breeders, veterinarians, and trainers

SELECT pt.Name, SUM(p.Score) as totScore, COUNT(*) as CatTotal
FROM Users u
JOIN Posts p ON p.OwnerUserId = u.Id
JOIN PostTypes pt ON pt.Id = p.PostTypeId
WHERE u.Id = ##UserID##
GROUP BY pt.Name

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results