SELECT count(*) as TotalVotes, SUM(CASE WHEN PostTypeId =...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

SELECT
       count(*) as TotalVotes,
       SUM(CASE WHEN PostTypeId = 1 THEN 1 ELSE 0 END) AS QuestionVotes
FROM    Votes v JOIN Posts p ON v.PostId=p.Id
WHERE  UserId = 234175;

Enter Parameters

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