I have a table that has 5 different columns:
vote_1, vote_2, vote_3, vote_4 and vote_5
For each row, these columns contain a name and what I am trying to do now is fetch the total number of occurrences of every value in any of the above columns.
The final result should be something like:
Value1 | 30
Value2 | 25
.....
How to achieve this in a single SQL query?.