select count(*) as numVotes,cv.ContenderName,rc.PartyName from castVote cv inner join RegisterContender rc on cv.ContenderName = rc.Name where ContenderName IS NOT NULL group by ContenderName order by numVotes desc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)