I have a table, with the following columns:
id name vote
Each name is unique, and each vote is either null or contains a name.
I need a MySQL statement to return how many votes each person has, and who voted for each person.
I’ve been working on this for 3 hours, and I’m at a complete loss, so I honestly don’t care how inefficient it is, or how you do it.
How many votes:
Who voted for each:
… unless I’m misreading something, it should be that simple