Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL syntax question
Sean wrote:
> Hello all,
>
> I have a statement that works on SQL server and doesn't on Oracle (v9):
>
> select FLD1, FLD2 from (select distict FLD1, FLD2, FLD3 from TBL1) As X
>
> Oracle error #93: SQL command not properly ended.
>
> What's the problem with the statement that Oracle doesn't like?...
> Thanks,
>
> Sean
Glad you solved the problem this time but in general doing things in Oracle as you did them in SQL Server is a bad idea. Even when the syntax is valid it is not necessarily the best practice.
Suggest you get a copy of Tom Kyte's book "Expert one-on-one Oracle" and give special attention to the first 3 chapters.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Wed Feb 02 2005 - 12:20:15 CST