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

Home -> Community -> Usenet -> c.d.o.server -> Re: Difficult Query Question!!!

Re: Difficult Query Question!!!

From: Rene Nyffenegger <rene.nyffenegger_at_gmx.ch>
Date: Thu, 3 Nov 2005 22:30:47 +0000 (UTC)
Message-ID: <dke32m$535$3@nntp.init7.net>


On 2005-11-03, tal fts <tal.fts_at_gmail.com> wrote:
> 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

Already answered in comp.databases.oracle.misc.

Please don't post the same question into different groups. I even consider cross posting into comp.database.orace.{misc,server} bad; most people will read both groups anyway.

Rene

-- 
  Rene Nyffenegger
  http://www.adp-gmbh.ch/
Received on Thu Nov 03 2005 - 16:30:47 CST

Original text of this message

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