Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Order by with partition

Re: Order by with partition

From: jaromir nemec <jaromir_at_db-nemec.com>
Date: Thu, 11 May 2006 12:27:20 +0200 (CEST)
Message-ID: <34056.213.162.65.17.1147343240.bloek@pwebmail.utanet.at>


Hi,

if you only need to distinct between the partitions you may use the build in function DBMS_MVIEW.PMARKER

something like …

select DBMS_MVIEW.PMARKER(rowid), max(column), min(column) from your_table
group by DBMS_MVIEW.PMARKER(rowid);

To identify the partition use additional max(partition_key_column) or max(some transformation of the partition key column) dependent of your partitioning schema.

Regards,

Jaromir

> Hi,
>
> can we use order by or group by on clause on partition?
.com/go/onm00200636ave/direct/01/
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu May 11 2006 - 05:27:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US