geraldjr30b
Programmer
hi. i have the following:
SELECT distinct top 30 studentid,[101], [102], [103],[104]
FROM tbl_TEST s
PIVOT
(count(grade_status)
FOR semester IN
([101], [102], [103],[104]))p
How can I actually list the grade_status value instead of the count? Or how can i group by grade_status?
Thanks
SELECT distinct top 30 studentid,[101], [102], [103],[104]
FROM tbl_TEST s
PIVOT
(count(grade_status)
FOR semester IN
([101], [102], [103],[104]))p
How can I actually list the grade_status value instead of the count? Or how can i group by grade_status?
Thanks