Hi all,I have a table name: Feedback, under that following are the column:----------------------- ID | Qs1 | Qs2 | Qs3---------------------- 1 | 2 | 1 | 4 2 | 2 | 1 | 1 3 | 3 | 1 | 2 4 | 2 | 1 | 3----------------------
Now I want calculate the feedback in following way:No. of 2 in Qs1 is 3No. of 3 in Qs1 is 1& Total No. is 4So the percentage for 2 is ((3/4)*100) & 3 is ((1/4)*100)The same way I want to calculate for Qs2 & Qs3I got the following query, but I am not able to calculate the percentage:SELECT(SELECT count(Qs1) FROM dbo.Feedback where Qs1 = '2'),count(ID)FROM dbo.Feedback
Hope I can make you understand my query!Daipayan