Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: CREATE TABLE AS SELECT
Tried ALTER TABLE ???
In article <37736fb2.1063919_at_news.earthlink.net>,
Jeremy.Russell_at_I-got-all-the-spam-i-need.usa.net (Jeremy Russell)
wrote:
> 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
>
>
--
Ed Prochak
Magic Interface, Ltd.
ORACLE services
440-498-3702
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Fri Jun 25 1999 - 12:04:43 CDT