I have a table that has 5 different rating columns (varchar). Each column will contain values excellent, good, adequate, or poor. I would like to tally the count of each value for each column and put that into an array for graphing. The results would be some like this.
Speaker: Excellent = 5
Good = 3
Adequate = 2
Poor = 0
Food: Excellent = 3
Good = 2
Etc.
Can this be done with one SQL or do I need multiple Statements using group by to get this done?
Thank you in advance.
Speaker: Excellent = 5
Good = 3
Adequate = 2
Poor = 0
Food: Excellent = 3
Good = 2
Etc.
Can this be done with one SQL or do I need multiple Statements using group by to get this done?
Thank you in advance.