Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to calculate the total of a varchar column?
...correction :)
SELECT COUNT(gender), NVL(gender, 'ALL') a FROM Student_detail
WHERE ethnic_group_code = 1
GROUP BY GROUPING SETS(gender,0) ORDER BY a DESC
Best regards,
Adrian
Received on Mon Feb 13 2006 - 12:39:37 CST
![]() |
![]() |