Hello:
Can someone please tell me why this query would return the same results for YesVotes and NoVotes? The should result in 3 YesVotes and 1 NoVotes. Any help would be great!
mysql table Votes
+--------+
| Vote |
+--------+
| Yes |
+--------+
| No |
+--------+
| Yes |
+--------+
| Yes |
+--------+
query
SELECT COUNT(Vote='Yes') AS YesVotes, COUNT(Vote='No') AS NoVotes,
FROM Votes
result = 3 YesVotes | 1 NoVotes