Adding print times n ranks

Hi all
It is an addition to print at the same time n rows.
I have the following query, in which each line must be printed time 'amount '.
SELECT poh.segment1       po_number, 
       pol.po_line_id     po_line_id, 
       pol.line_num       line_num, 
       pol.unit_price     unit_price, 
       pol.quantity       quantity, 
       msi.description    description, 
       msi.segment1       item_code, 
       manufacturer_name 
       ||'/' 
       ||mpn.mfg_part_num part_no 
FROM   po_headers_all poh, 
       po_lines_all pol, 
       mtl_system_items msi, 
       mtl_mfg_part_numbers mpn, 
       mtl_manufacturers mm 
WHERE  poh.po_header_id = pol.po_header_id 
       AND pol.item_id = msi.inventory_item_id 
       AND msi.inventory_item_id = mpn.inventory_item_id 
       AND mpn.manufacturer_id = mm.manufacturer_id 
       AND msi.organization_id = 0 
       AND mpn.organization_id = 0 
       AND poh.segment1 = 22 


Sample Output:

PO_NUMBER     PO_LINE_ID     LINE_NUM     UNIT_PRICE     QUANTITY     DESCRIPTION     ITEM_CODE     PART_NO
22     124     7     380     3     Repair Kit,Air Compressor     1202.02.2222.0029     Scania MDL.T112/1374083
22     74     3     20     24     Filter,Oil     1202.02.1111.0032     Scania MDL.T112/173171
22     76     5     4232     2     Plate,Clutch Pressure     1202.02.1111.0108     Scania MDL.T112/1102425

Hello

H.O wrote:
...
I am facing the following error:
ORA-01473: cannot have subqueries in the CONNECT BY clause

That looks like you are using an older version of Oracle. What version do you use?
One way to work around this error is to change:

(
     SELECT     LEVEL  AS n
     FROM     dual
     CONNECT BY     LEVEL <= (     SELECT  MAX (quantity)
                         FROM     origianl_results
                     )
)

in my solution to

(
     SELECT     ROWNUM  AS n
     FROM     all_objects
     WHERE     ROWNUM <= (     SELECT  MAX (quantity)
                    FROM     origianl_results
                 )
)

or make the change corresponding to the solution of knapen.

As written, this probably won't work for a certain number of repetitions in the thousands.
Run this

SELECT  COUNT (*)
FROM    all_objects;

to see exactly what.

In Oracle 8, WITH clauses in my solution will have to be re-written views also online.

Tags: Database

Similar Questions

  • HP Officejet Pro 8600 e-All-in: extended image printing time

    I work in a center of art and we always print pictures from the internet and stored images to use with our classes.  We have 2 8600 photograph printers and both extremely slow.  It may take up to 3-4 minutes to print a picture.  We also have a Dell PC that has no problem printing in a reasonable amount of time for the size of the image.

    I tried affecting the project settings & directly connecting to the printer and have had no success in reducing printing time.  Someone had this problem?  My next step is going to be uninstall and start again if none of you have an alternative for me.

    Thank you

    MCM1

    Hey @MCM1,

    Welcome to the Forums of HP Support!

    I understand that your two printers of HP e-all-in-one Officejet Pro 8600 printing slow computer Mac OS X 10.8. However, they print at a normal speed of your Windows System. I would like to help you today with this slow printing problem. Because printers print well to a Windows system, I don't believe that this problem is the printer hardware or connectivity related. I think rather than the print driver or incorrect is used on the Mac OS System X 10.8. Or, there may be a conflict occurring on the Mac printing system. Therefore, I will ask you to perform some standard Mac troubleshooting for this problem. Can I please you follow the steps below.

    Step 1: Check of driver:

    To start I have to confirm that your Officejets HP using HP driver and not the generic Apple Airprint driver print.

    1. click on the menu of Apple , then Preferences System.

    2. click on Print & Scan and then check if the name of your printer appears in the printer list.

    3. click on the name of your printer, click the sign minus (), then remove the printer.

    4. click on the plus sign (), click Add a printer or a Scanner, click the name of your printer.

    5. click on the area of use or with the help of Print and then select the name of your printer on the shortcut menu. Ensure that the Officejet driver is selected and not the Airprint.

    6. click Add to add the printer to the list.

    Once the printers have been confirmed as using the correct printer driver, please test printing an image. If the slow printing problem continues to occur, proceed to the next step.

    Step 2: Reset the printing system:

    Please click herefor instructions on how to perform the reset. When the site opens, follow the steps under "Reset printing in OS X Lion system" that the steps are the same for Mac OS X 10.8. This Reset deletes each printer on your Mac. However, it does not uninstall printers. Therefore, if use you other printers on the Mac, once the reset is complete simply make sure printers are attached via a USB cable or connected network and (+) add hide them po do not return in your HP Officejets currently Add.

    Once the reset is complete, proceed to the next step.

    Step 3: Uninstall the drivers and software:

    Please click here to find out how to properly uninstall your printer. Once the site opens, follow the steps in step 1 and step 2, depending on how you originally installed printers.

    Once the uninstall is complete, please continue on.

    Step 4: Check and repair your Mac disk permissions:

    1. Open Macintosh HD and go to Applications
    2. Go to the Utilities folder
    3. Open disk utility
    4. Select the hard disk volume, you use (usually on the left)
    5. Select verify disk permissions
    6. Once this process is complete, select repair disk permissions

    Step 5: Check the Apple updates:

    1. Go to the Apple
    2. Select System Preferences
    3. Select software update
    4. Click update now
    5. Install your available updates
    6. Computer restart

    Step 6: Install devices:

    Please click here to download the latest package full feature software and driver for your printers. Once the download is complete, follow the prompts on the screen to install the HP Officejets. Once the installation is completed successfully, please test print to confirm that the slow printing problem has been resolved.

    Please reply to this message with the result of your troubleshooting. I can't wait to hear strings attached good luck!

  • Adding printer HP to Chromebook

    I have a desktop computer with windows 7 operating system installed and a chromebook.  I want to install the HP printer photosmart 2410xi which is wired to the desktop. I want to print wireless HP 2410xi.  Is google cloud the only way to make an impression from the chromebook.  Does this mean if I change the desktop computer to print on google cloud desktop or chromebook print on the cloud? How can I leave the configuration of one desktop computer and get to print using my chromebook?

    Hello maureen28461,

    Thank you for the update.

    I have included document connect your classic with Google Cloud Print printers Google Cloud.  It does not address the specific error you've encountered, but it will guide you through adding the printer.  If all goes well, there will be more mistakes.  I have also included the link to the Google Cloud Print Help Center.

  • Windows 7 time zones, add ADDITIONAL, I use the other 2 boxes provided using IE11 like adding other time zones

    Windows provides adding 2 other time zones which I use for time int ' l

    Other than that use more than 2?

    Or is there a way to do this, I like that I can hover over the time and see the pop up with the other 2 time zones, I have added.

    Thanks in advance

    You can have only a 1 time zone configured on your computer. That being said, this is the same computer as in that previous thread of yours? -Online http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/manage-add-ons-not-working-no-add-ons-are-there/b830d22f-0629-48d7-a0fd-10fac3b48d31

  • Problem adding printer IPP client windows 7

    In the previous version of windows up to xp, I was able to add a printer that uses IPP (Internet Printing Protocol) printing. Unfortunately with windows 7, I was unsuccessful.  I tried to add printing using the APW > add a network > add a printer shared by name > and used http://xx.xx.xxx.xxx:631 / address and all acquire them in return is error «Windows could not connect to the printer...» ».  I am still able to connect through XP very well.  I also tried I tried to create a port local using this address, but all happens it is an error message, "invalid port name" help please

    Hello

    Follow these steps and check if it works:

    1. open devices and printers, click the Start button, and then click the start menu, click devices and printers.

    2. click on add a printer.

    3. in the Add Printer Wizard, click Add a network, wireless or Bluetooth printer.

    4. in the list of available printers, select the one you want to use, and then click Next. (If your computer is connected to a network, only printers listed in Active Directory for your domain are displayed in the list).

    5. If prompted, install the printer driver on your computer by clicking on install driver.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    6. follow the steps in the wizard and then click Finish.

    See this links to learn more about adding a printer.

    http://Windows.Microsoft.com/en-us/Windows7/install-a-printer-on-a-home-network
    http://Windows.Microsoft.com/en-us/Windows7/what-is-a-trusted-device
    http://support.Microsoft.com/kb/941542

    Kind regards

    Jackson.

  • Problem with adding printer to other computers on the network


    With the complete software for the printer on each system, it's my first choice, anyway. It's more complicated in the home network when you have to install everything manually on each system - one then do it several times to make it work! Everything is wll that ends well and all that. I'm glad it works!

  • When adding printer, I get an invalid code

    I have a HP 4620 that I just bought.  I had a lot of problems connecting to wifi, but my cable provider has me

    the entire facility.  I use Windows 7.  When I click on add a printer that I enter the e-mail address that is on my printer

    and he says it's an invalid code.  He also says that I can change this email address by clicking on edit which I can't

    To find.

    The printer code must be printed and used within 24 hours or you will get an invalid code. If you have printed it and spent 24 hours so you can reprint just the code, but it must be printed before this will work on the ePrint site. You get a signed time and code then you will have a chance to change the email address of the printer.

    Let me know how it goes.

  • 7310 HP stopped printing, Time Capsule/MAC user

    My 7310 HP stopped after a paper jam. The message was 'busy', will try again in 10 seconds. Turn power switch did not work. The all-in-one was connected to Time Capsule and had been printing successfully, but not more. I could use the copier function to print so it can be assumed that the problem is not in the printer. I uninstalled and reinstalled the HP software that I used successfully before. I can print if I plug the USB key directly into the MacBook Pro. I can scan in this way, as was the case before. However, I can not print with the USB connected to Time Capsule. I can still use the copier without problem. I am running MAC OS 10.6.4. Any ideas? I would appreciate the help.

    Thank you.

    Have you installed the software from the CD for the printer hp?  It's probably your problem or one of them.  Remove this way:

    Go to Applications/Hewlett Packard / click Uninstall HP
    Click on continue
    Highlight your device in the left pane
    Hold down the Ctrl and Opt Cmd and click on uninstall
    There will be a pop up that asks if you are sure you want to uninstall all hp software. (At this point, if you continue, all HP printers you have installed will need to be reinstalled)
    Click on continue and let it finish

    Now run a software update.

    Then, remove and reinstall the printer in System Preferences, Print & Fax.

    You do not have the software now since Snow Leopard as well print & scan drivers built-in. scan from Preview apps or Image Capture. Scan from the front panel of the printer does not work yet.

    Now, let's set an IP address of the printer:

    -Print a the front of the printer Network Setup Page. Note the IP address of the printer.
    -Enter the IP address in a browser to reveal the internal settings of the printer.
    -Choose the network tab, then wireless along the left side, then on the IPv4 tab.
    -On this screen, you want to set a manual IP address. You must assign an IP address outside the range that the router sets automatically (called the DHCP range). If you know what it is, set an IP address outside this range but not exceeding 254 (the last number of the address). If you don't know it, enter the current IP address.
    -Apply the subnet 255.255.255.0 (unless you know it's different, if so, use it)
    -Let the gateway and DNS white. Click 'apply '.

    Now, stop the router and printer, start the router, wait, and then start printing.

    After that, you will have to redo 'Add printer' using the new IP address.

  • Adding a timer to my film

    I do an obstacle course competition and need to have a clock in the upper right corner of the video, is it possible on iMovie 10.1.2?

    HI, gmacmain,

    It is quite easy to insert a clock in your video.

    Download the internet a video clip of a timer and then insert it into your video using the image in the image

    iMovie function.

    Here is a 10 minute timer that I found.

    https://www.YouTube.com/watch?v=pHvP71rwYAc

    I downloaded to my counter top, it imported into iMovie as a music video project, placed on top of the timeline above my video, it selected, clicked the button places that overlap in the toolbar at the top of the screen and then select picture in picture.  The timer clip was then overlaid on my video, and I could adjust the size and position of the clock in the preview screen.   Then click on the button reset and you are ready to go.

    See you soon,.

    Rich

  • HP M476: Mac sees more M476 when adding printer, no scan option

    Help!

    My Mac is no longer automatically detect my printer network M476 when I click on add a printer.  If I go to manual IP and add the address he finds her, but when he adds there is not full functionality IE there is no scan option.

    It is since the last firmware update, I think.

    I have reset the print dialog mac, tried to let off during a period, try a manual update of drivers - out of options...

    Can anyone suggest anything you please.

    Thank you

    Colin

    It's the new mcafee virus software. Disabled the firewall and the printer appeared.  Hope this helps someone else.

    Thanks to for fixing hp cat.

  • Adding printer series HP PSC2100 via the IP Port, type of printer does not show on the list of devices even when you are using the factory supplied driver disk.

    Installation D-Link DP-301U network home of three computers. I am able to access the printers using its IP address, Setup has worked with Vista Ultimate system but two systems of Windows XP Pro (SP3) does not Printer series HP PSC2100 list when you use the 'Disk' during installation radio button. Is there a work around or Microsoft drivers to resolve this error?

    Hello William51,

    Thank you for your message.  Try the following steps to add your printer.
    Click "Start" > select "printers and faxes".
    Click on 'Add printer' > click 'Next' > select ' local printer, and then make sure that detect automatically is disabled
    Select "Create a new Port" and the arrow down to "Standard TCP/IP Port" > click "next".
    Click "next".
    Type the IP address and click on 'Next' > 'Finish '.
    You must then install the driver/software for your device.  You can use "Have Disk", download from website, or find your model.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Adding printer

    Add a printer that is installed correctly as far as I know, however the printer just keeps spitting continually blank paper when I go to print something.

    Hello

    ·        Who is the manufacturer of the printer and what is the model?

    ·        You are able to print the test page?

    ·        What application you are trying to print from?

    ·        What you are trying to print?

    Please elaborate on the issue.

    Check the items listed below and run the printer Troubleshooter that is mentioned in the article below.

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    Printer problems in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Need help for adding printer in virtual XP mode

    Windows 7 64 bit

    HP Laserjet 4250

    I have the XP mode installed for a legacy program that only runs under XP. The integration settings that the printer is shared, but XP mode do not recognize. When I go in the USB menu and click on the name of the printer, nothing happens.

    Hello Matthew,.

    Thank you for keeping us posted.

    I imagine the inconvenience that you are experiencing. However, I appreciate your efforts to resolve the issue.

    I suggest you to send your query on the TechNet forum.

    Please post your request in the below link to find a community that will provide the best support.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itprovirt&filter=AllTypes&sort=lastpostdesc

    I hope this information is useful.

    Please let us know if you need more help, we will be happy to help you.

    Thank you.

  • BB Maps Menu item is added several times

    Hi, I'm currently adding an ApplicationMenuItem custom to the Maps Application. However, no matter what I do, the menu items run method is never called, the place my application main method is called and the menu item is added once more to the menu card. In other native applications, it worked perfectly, just in the Maps app it seems not working. I also tried the information provided to http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800703/How_To _... but still got the same results. I have another point of entry to my request so that the menu item is added to the start of blackberry. If I remove the other entry point and add the menu item when the user starts the application in the bb menu, it works. I would be grateful any entry on the subject I would like to work with the other entry point. I use Eclipse with the JDE Plugin 1.0.0.67 with component Package 4.2.1 (also tested with 4.5.0). Thanks for your help, Lukas

    I found the solution to my problem in this post:

    http://supportforums.BlackBerry.com/T5/Java-development/adding-menu-item-to-file-Explorer/m-p/223514...

    Add the same argument that I use in my menu entry point (to differentiate the delivery of system boot) to the ApplicationDescriptor solved the problem.

    Thanks again for your good help.

  • My Illustrator CS4 crush at print time

    He smashes whenever I try to print a document Please HELP, I uninstall and reinstall and still I can't print... Any ideas what to do?

    It is not intuition, it is a known problem with the Illustrator and Indesign cs3 and cs4.

    Follow the KB: -.

    kb2.Adobe.com/CPS/912/cpsid_91254.html

    I thought that it is a kind of anxiety. So I would say again that if these steps has not followed it please try, it may be useful.

Maybe you are looking for

  • Noise problem Satellite L300 C21 external Sound

    Hello everyone, I have a Satellite L300 C21. It's been eight months now. But I experienced some "special effects":When I plug the laptop through my stereo receiver headphone output, I have great sound.It is perhaps a matter of configuration. But when

  • Satellite L450D - 11H - can I downgrade to Windows XP?

    Hi guys I have a Toshiba Satellite L450D - 11 H with the following specifications -AMD Sempron Processor TR-42-DVD - RW SuperMulti drive (Double Layer)-1024 MB DDR RAM (800 MHz)-15.6 "screen (1366 x 768) TruBrite high brightness I was wondering if th

  • Need to buy R2 Windows Server 2012

    Hello I have a small business and want to host and manage my own website. I downloaded and tried the trial version of windows server 2012 R2 and continue with it. Looking at the structure of the price that I got confused there are several option abou

  • Cannot send messages in Outlook Express

    I can't send all messages, large or small, now that do not come with the error message and send the message to the Outbox.

  • How can you communicate with Adobe?

    Hopw you contact Adobe?