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: SQL Question

Re: SQL Question

From: Kenneth C Stahl <BluesSax_at_Unforgettable.com>
Date: Fri, 09 Jul 1999 07:46:33 -0400
Message-ID: <3785E118.ACD928BB@Unforgettable.com>


The 'group by' clause is also unnecessary since there are no summary columns.

Ken

Alex Shnir wrote:

> removal of order by clause will fix it
>
> Mark Wagner wrote:
>
> > This is the insert im trying to do: (PAYROLL_WITH_NO_CUSTOMERIDS is a view)
> >
> > INSERT INTO DEDUCTEES ( FName, LName, EmployeeID )
> > SELECT FName, LName, EmployeeID
> > FROM PAYROLL_WITH_NO_CUSTOMERIDS
> > GROUP BY FName, LName, EmployeeID
> > ORDER BY LName;
> >
> > this is the response i get:
> >
> > Oracle8 Release 8.0.5.0.0 - Production
> > PL/SQL Release 8.0.5.0.0 - Production
> > SQLWKS> INSERT INTO DEDUCTEES ( FName, LName, EmployeeID )
> > 2> SELECT FName, LName, EmployeeID
> > 3> FROM PAYROLL_WITH_NO_CUSTOMERIDS
> > 4> GROUP BY FName, LName, EmployeeID
> > 5> ORDER BY LName;
> > ORDER BY LName
> > *
> > ORA-00933: SQL command not properly ended
> >
> > Im not sure what is wrong.......
> >
> > thanks
> >
> > Mark
> > mark_at_cybertrails.com
Received on Fri Jul 09 1999 - 06:46:33 CDT

Original text of this message

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