SQL Command not properly ended?

Paul Woidke picture Paul Woidke · Mar 21, 2012 · Viewed 24.9k times · Source

I am using a SQL statement with a Temporary relation, and am getting the error ORA-009933: SQL command not properly ended

I don't see anything wrong with the statement, so any assistance is greatly appreciated. The statement is:

SELECT Temp.name,
       Temp.AvgSalary
FROM   (SELECT A.aid,
               A.aname       AS name,
               AVG(E.salary) AS AvgSalary
        FROM   Aircraft A,
               Certified C,
               Employees E) AS Temp; 

Thanks

Answer

Aprillion picture Aprillion · Mar 21, 2012

oracle does not support as for table aliases, only for column aliases and they are optional for that use => delete all as keywords ;)