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 -> Re: SQL Question

Re: SQL Question

From: Alton Ayers <altona_at_ditw.com>
Date: Sat, 12 Sep 1998 11:39:43 -0400
Message-ID: <35FA95BE.3611BB01@ditw.com>


Try this:

select label_stuff
from your_table, (select rownum from dba_objects where rownum < 23) order by label_stuff;

This will give you 22 of each row.
You can use any table instead of dba_objects as long as it contains at least 22 rows.

Chris Daugherty wrote:

> Hi.
> I have to print out 22 labels for every row in an Oracle table. Is there
> a way to do this in an SQL statement? Thanks for you help in advance.
>
> Please response by e-mail as well as posting the answer.
>
> Chris Daugherty
> cmdaugherty_at_pier1.com
>
Received on Sat Sep 12 1998 - 10:39:43 CDT

Original text of this message

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