Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: query help
>
> Analytics rock:
>
> SELECT DISTINCT FIRST_VALUE(el1) OVER(PARTITION BY el2 ORDER BY el3) el1,
> FIRST_VALUE(el2) OVER(PARTITION BY el2 ORDER BY el3) el2,
> FIRST_VALUE(el3) OVER(PARTITION BY el2 ORDER BY el3) el3
> FROM TEST;
>
> Look at autotrace output: less consistent gets, less sorts
>
> Urs
That is very cool. Now I will go figure out why it works. Received on Mon Jul 26 2004 - 21:08:30 CDT
![]() |
![]() |