Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to calculate the total of a varchar column?

Re: How to calculate the total of a varchar column?

From: <adik_q_at_wp.pl>
Date: 13 Feb 2006 10:39:37 -0800
Message-ID: <1139855977.462322.193410@g14g2000cwa.googlegroups.com>


...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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US