Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: about ORDER BY (newbie here)
sure.
select ... from ... where ... order by x,y
Now x and Y have to be unique name s of columns in the result set. If you
have a column with the same name in multiple tables then you have to prefix
the column name in the order by with the table name.
order by a.x, b.y
Jim
<" srcnckpc"@hotmail.com> wrote in message
news:3A8081DF.4DC0D074_at_hotmail.com...
> I am trying to join 3 tables and sort the results by two columns. Can
> ORDER BY take two variables, ie, ORDER BY X,Y?
>
> I tried ORDER BY (X,Y) but get the error:
>
> missing right parenthesis
>
>
> Thanks for any suggestions,
> SRC
>
>
>
>
Received on Tue Feb 06 2001 - 23:14:02 CST
![]() |
![]() |