Printing a row n times

Hi All,
I need a query to print a row n times.
Example:
select empid,empname,n_times from emp
where empid=123;                                   (supposing this returns one row, The new query should return the same row 'n_times' times)Thanks in advance.

MHO%xe> with multiplier as ( select level l from dual connect by level <= 10 )
  2  select t.employee_id
  3  ,      t.first_name
  4  ,      t.last_name
  5  from   hr.employees t
  6  ,      multiplier
  7  where  t.employee_id = 102
  8  /
EMPLOYEE_ID FIRST_NAME           LAST_NAME
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
10 rijen zijn geselecteerd.
MHO%xe> var recs number
MHO%xe> exec :recs := 5
PL/SQL-procedure is geslaagd.
Verstreken: 00:00:00.35
MHO%xe> with multiplier as ( select level l from dual connect by level <= :recs )
  2  select t.employee_id
  3  ,      t.first_name
  4  ,      t.last_name
  5  from   hr.employees t
  6  ,      multiplier
  7  where  t.employee_id = 102;
EMPLOYEE_ID FIRST_NAME           LAST_NAME
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
5 rijen zijn geselecteerd.
Verstreken: 00:00:00.04
MHO%xe> exec :recs := 15
PL/SQL-procedure is geslaagd.
Verstreken: 00:00:00.04
MHO%xe> /
EMPLOYEE_ID FIRST_NAME           LAST_NAME
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
        102 Lex                  De Haan
15 rijen zijn geselecteerd.
Verstreken: 00:00:00.09
MHO%xe> Edited by: hoek on Jun 28, 2009 3:05 PM added variable example

Similar Messages

  • Printing One Address Multiple Times

    Hi All,
    I am using the label format portion of Oracle Reports and I am trying to display/print one address multiple times based on the user's input. Is this possible? Any coding example would be greatly appreciated. Thank you for your help in advance.
    Michael James

    You could pass this value as a parameter to the report and add a where clause to the report that limited the numbers returned based on this parameter. This is essentially what Kevin's doing in his example (the reference to :copies_required).
    Incidentally, there's another way to do this without creating a new table of integers. You can get the same result by using the rownum pseudo column (as long as you have a table with at least as many rows as the number of times you want the address to repeat). You can then create one driving query:
    select rownum from table
    where rownum <= :number_of_copies
    and a detail query:
    select address from address_table
    Link these queries with a group link and generate a default layout. Delete any columns in the 'rownum' repeating frame and run - you should get the address repeated the number of times specified in :number_of_copies.
    Hope this helps,
    Danny

  • Smartforms  how to print Table rows on to the next page automatically

    if this question is answered pls point to the the link
    SMART forms:
    layout :  Half of my A4 page is filled with templates, a small portion is footer, the middle portion is Table.
    Note: i have set the condition for the footer as (tick the check box) "only after end of main window"
    Output:
                       the template is displayed the table is populated on the first page, no footer on 1st page,
                    on page 2 the table rows are printed (table rows were a lot) and finally footer got printed every thing as per normal
    what i want is:
                     instead of the table lines printed in the middle of page 2 (bcz my main window table is in the middle, top is templates)
                     i want the table lines (after filling the main window table lines in the 1st page) to continue to print from the
                     top of the page on page 2 and immediately after the table rows finish. footer must be printed....
    what should i be doing to get this output

    dear bob,
    yes i have done that already as u said, when i do it......
    i created a new page (next page) directed first page to next page
    on the next page my layout is like below
    removed all the templates dragged the main window to the top of the page...... 
    when i check the result, there is an empty line as the first line in the table (2nd page)
    and also the footer (again a template) on the first page, which is ticked as ( print after end of main window) is NOT displaying.

  • Can't print a photo multiple times on a single page

    I just installed iLife 8 and am trying to print one 3X5 photo multiple times on a single page. When I consulted the help menu in iPhoto, I found what I thought was the answer. When I followed the instructions, I hit a snag because I don't have the Photos Per Page pop-up menu it references. Any ideas on how I can do this to save paper?
    Here's what the help menu said:
    Printing one photo multiple times on a single page
    If you have a favorite photo you want to share with many people, you can print multiple copies of that photo on a single page.
    To print one photo multiple times on a single page
    Select the photo you want to print.
    Click the Print button.
    Select the paper size (such as letter-size or legal-size).
    Select the print size (such as 2 x 3 or 4 x 6).
    If you want to make the photo a custom size, select Custom.
    Click the Customize button.
    Click the Settings button.
    Select “Multiple of the same photo per page” from the Photos Per Page pop-up menu.
    iPhoto will zoom and crop the photo to fit the space available. To make a photo appear full-frame, Control-click the photo and choose “Fit Photo to Frame Size” from the menu that appears.
    Click OK.
    Click Print.

    Well don't I feel stupid! I just installed iLife '08 and assumed that it would tell me right away if I needed any updates. I found and installed the needed updates (7.1.1), I got the right settings drop down menu to print multiples on one page. Thanks for your help

  • Print month view without time of day

    I am using iCal to manage project due dates in our office. I am able to turn off the hours/minutes when in screen mode, but each time I print the month view of the calendar the times print too. Is it possible to NOT print the time?
    Thank you.

    musetta24,
    Sorry to see that no one replied to your post back in October.
    Normally when I notice that someone posted for the first time in Apple Discussions, I open my reply with - "Welcome to Apple Discussions." With my apologies for the lack of responses, please accept a belated welcome and reply to your question.
    Widowwmaker,
    iCal will not print without displaying the times.
    If you are willing to use the Preview application, you could take a screen shot of your preferred iCal window, and print using the Preview print menu.
    ;~)

  • My new Canon Pixma 7250 wireless printer can no longer find my wireless network. My MAC is, Yosemite 10.10.2. I've run diagnostics and Canon LAN printer setup routine many time. Is there a solution? Can anyone help?

    My new Canon Pixma 7250 wireless printercan no longer find my wireless network. (It worked fine until recently) I have a Yosemite 10.10.2. I've run diagnostics and the Canon LAN printer setup routine many times. Is there a solution? Can anyone help?

    Turn of the MG and unplug the power cord. Leave it off for about a minute and then reconnect the power cord and turn the power back on. Wait while the device attempts to reconnect to your wireless network - the blue wifi symbol on the MG will flash and then stay on once it has connected. If it keeps flashing then you will have to reconnect the MG to your wireless access point via the control panel on the MG.

  • Just installed a HP Color Laserjet CM2320nf MFP printer, at the same time I upgraded to Lion. It prints fine, but I cannot use the scan functions.  I downloaded the most recent driver! Any help would be appreciated.

    Just installed a HP Color Laserjet CM2320nf MFP printer, at the same time I upgraded to Lion. It prints fine, but I cannot use the scan functions.  I downloaded the most recent driver! Any help would be appreciated.

    HP says that the drivers for your all in one print/scanner are downloadable from apple. For the scanner to use preview. image capture or the scan icon from the print driver queue.  I don't know how old your HP is, but I know that the newer Os from apple don't support a lot of older printers. You might be able find a third party driver that could work.

  • How to print the row  ,column,and particular cell in separate color

    how to print the row  ,column,and particular cell in separate color IN ALV GRID

    HI,
    Here you go good program links
    <a href="http://www.sapfans.com/forums/viewtopic.php?t=52107">How to Set Color to a Cell in AVL</a>
    <a href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm">ALV Grid Coloring</a>
    Thanks
    Mahesh

  • Mac OS X 10.7 drivers for HP LaserJet 1300: installation at the "Add Printer" process ended, every time, with message "Currently drivers for this printer are UNavailable..."!   PLEASE HELP?

    APPLE [see Apple Support's Article HT 3669] says Mac OS X 10.7 (Lion) has drivers for this Printer. 
    But, every time I've tried installing it to my Mac Book Pro (which came with OS X 10.7), it does recognize that the Printer (connected via USB cable) is HP LaserJet 1300 -- in fact, right below, this statement appears: "The drivers for this Printer are available...".  But, when it comes to the actual process of downloading, the "Add Printer" window -- after 20+ minutes of its "searching" for the drivers -- always ends with the message: "Currently drivers for this printer are UNavailable... contact the manufacturer."!!!  (Can you imagine? Apple says it's available... but its own "Add Printer" process says it's UNavailable!)
    I went to HP's support site, and it, too, says that drivers for this Printer are available!  -- see the 2 links:
      http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01664444&lc=en&cc=us&dlc=en &product=4152639
      http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02915680&tmp_track_link=ot_ faqs/top_issues/en_us/c02915680/loc:4&cc=us&dlc=en&lc=en&product=4152639#N507
    Can somebody help me?  Would very much appreciate it.

    You haven't installed any of the Photoshop updates for CS5.
    Go download and install the updates.

  • It is possible to print any name 200 times without using loops?

    How to print any name 200 times without using loops and recurssive function and that to in java?

    String name = "incognito10";
    System.out.println(name.replaceAll("\\w+",
        "$0\n$0\n$0\n$0\n$0\n$0\n$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$0\n$0\n$0\n$0\n$0\n$0\n"+
        "$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n"+
        "$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n"+
        "$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n"+
        "$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n"+
        "$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n"+
        "$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0\n$0"
    );

  • How can I print the date and time in a photo from iPhoto

    How can I print the date and time in a photo from iPhoto

    You want to print them on their own? Can't be done. WIth the photo? Install this
    http://www.iborderfx.com/iborderfx/

  • Parallel printer to iMac or Time Capsule

    We just traded in an old PC for a new iMac running Lion.  We still have an old HP laserjet 4L that has been a trouble free workhorse, and would like to keep it if possible.  It only has one output, a standard parallel printer cable.  Is there a way to connect it?  I have read some reviews of adapter cables from Belkin and Cables to Go, and they are definitely mixed on this topic; also none of them referred to Lion as the OS (most seemed to be Tiger or earlier).
    We could connect either directly to the iMac or to our Time Capsule.
    Note I am most definitely NOT any kind of networking expert -- so keep it simple, please!
    Thanks.

    Is the HP printer connected to the Time Capsule by USB or Ethernet? If by USB, the Time Capsule's USB port does not support the "advanced" features (copying, scanning, & faxing) of multi-function printers ... regardless of the network client's operating system.
    If connect by Ethernet, you will need the appropriate printer drivers from the manufacturer.

  • Printing  3 at a time in PL 36

    Hi Experts,
    We are facing the issue regarding printing which is not printing 5 at a time.
    Print Settup had assigned in:
    PLD-> Document Properties-> Number of copies 5.
    In  PL26 only its not printing .. Can any one give  the solution regarding this issue..
    Emergency..
    By
    kart
    Edited by: Karthi keyan on Sep 10, 2008 8:47 PM

    Hi Experts,
    We are facing the issue regarding printing which is not printing 5 at a time.
    Print Settup had assigned in:
    PLD-> Document Properties-> Number of copies 5.
    In PL26 only its not printing .. Can any one give the solution regarding this issue..
    Emergency..
    By
    kart

  • To print one photo multiple times on a single page

    The title of my question is the title of the page in iPhoto 8 help.
    "To print one photo multiple times on a single page"
    It says (a bit shortened) 1. Select photo 2. Click print button 3. Select paper size 4. Select print size 5 Click Customize button 6 Click Settings button 7. Select "Multiple of same photo per page from the Photos Per Page pop-up menu. 8 Click OK 9 Click Print.
    I can not find the pop-up menu referred to in Step 7. There are two "settings" buttons - neither produce a Photos Per Page pop-up menu. Settings appears if you click a double arrow to the right in the lower margin but only deals with font issues and "Print Settings" does not offer such a pop-up.
    I am using Leopard on a PowerBook G4 and just bought and installed the newest iLife 8.
    Grateful for help.

    Arthur:
    When you click on the Customize button there will be a Setting button in the next window. Click on it and in the drop down window that comes up will be the option to print multiple photos of the same photo per page.
    Select that option and click OK. You'll get the spinning cursor for a few seconds as iPhoto creates the multiple copies on the page you selected. Be sure that the print size is small enough so that you can have multiple copies of it on the paper size you selected.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Printing LOGIN ID, DATE, TIME in PDF

    How to automatically print login ID, date, time in PDF

    You can read the 'identity' object in JavaScript but as I said before, it's forbidden to access it from a script inside the PDF file - only during batch, console and application initialization events.

Maybe you are looking for

  • System monitoring - DSWP and RZ21

    Hi all, I am using sap solution managers workcenter "System monitoring" to set up the sap monitornig for a huge landscape. This works well, but to receive alerts (e.g. per mail)  I additionaly have to do the settings in RZ21 (assign central autoreact

  • Not responding 10.2.1.1

    Ever since I updated to new itunes I have had tonnes of problems. 1) When trying to add music via add folder or file, Itunes freezes and stops responding. 2) When plugging phone in the USB is not recognised. 3) When attempting to sync my Iphone 4 Itu

  • 2010 to 2013 migration problem with service application

    With a 3rd party migrator we are able to migrate a simple 2010 site to 2013. By simple UI level approach sites are migrated easily. But we have a large project where we have good amount of work done on various service applications.  We are facing pro

  • Implicit fact in OBIEE

    Hi Team, what is the purpose and need of 'implicit fact' in obiee.As i am new for obiee let me know the answer with good real time scenario thanks in advance

  • Why can't I use wifi when the LTE is active?

    Why can't I use wifi when LTE is active?