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

Home -> Community -> Usenet -> c.d.o.misc -> CREATE TABLE AS SELECT

CREATE TABLE AS SELECT

From: Jeremy Russell <Jeremy.Russell_at_I-got-all-the-spam-i-need.usa.net>
Date: Fri, 25 Jun 1999 12:05:35 GMT
Message-ID: <37736fb2.1063919@news.earthlink.net>


Running the following SQL statement creates a summary table from SCOTT's employee table. Using 'depttot' as an alias allows me to name the aggregate column - but how can I assign a specific scale and precision to that column?

CREATE TABLE emp_summary AS
  SELECT deptno, sum(sal) depttot
  FROM emp
  GROUP BY deptno

Thanks ...

Jeremy Russell Received on Fri Jun 25 1999 - 07:05:35 CDT

Original text of this message

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