Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL question
FlameDance <FlameDance_at_gmx.de> wrote in message news:<cbctag$r8q$01$1_at_news.t-online.com>...
> Hi everyone,
>
> why does one of these very similar statements work and the other doesn't?
>
> SQL> select distinct fa20, '2' from t_2;
Distinct here means distinct rows not distinct fa20 If you look syntax diagram (sql reference manual), distinct must come after select.
hth Received on Thu Jun 24 2004 - 01:39:05 CDT
![]() |
![]() |