Hi all
I have a table Code_Review
It is having 3 columns(pk_id,code_reviewer_id and rate)
There are 4 type of rating.
1-very good.
2-good.
3-bad.
4-very bad.
I want to calculate how much rating given by each reviewer.
Means:
If Bhagirathi having id 200 has given 2 very good,4 good,3 bad and zero very bad rating to different code.
I want result
Count(Rate) Rate
2 1
4 2
3 3
0 4
I have tried
SELECT COUNT(RATE),RATE FROM CODE_REVIEW WHERE CODE_REVIEWER_ID= 200 GROUP BY RATE;
It is showing result
Count(Rate) Rate
2 1
4 2
3 3
I want to show the fourth row that is 4 rating zero in the gridview
Please Give me some logic to do this
I have already put this question but all the experts are saying to do another table but in my case i can't create another table.Without Creating another table how to solve that problem.
So please help me to find the how to show 4 rows using query or give some logic so that i can show 4 rows i the GridView.
Sorry for re-post the question...
Actually i didn't find the proper answer.
Thanks in advance