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

Home -> Community -> Usenet -> c.d.o.misc -> Difficult Query Problem

Difficult Query Problem

From: tal fts <tal.fts_at_gmail.com>
Date: 3 Nov 2005 06:42:41 -0800
Message-ID: <1131028961.927229.241050@z14g2000cwz.googlegroups.com>


Hi

i have a query which returns me an xml of the rows using xmlagg i want to limit the rows it return , which is not the problem (using rownum < num)

the problem is that i want to combine in the same sql , the real rows count using count(*)
like if i didnt added the rownum < num)

the result should be a count field with the real rowscount of the query and an xml of the first [num] rows

is it possible?, right no i am doing 2 sepearte quries, which is a waste of time

10x Received on Thu Nov 03 2005 - 08:42:41 CST

Original text of this message

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