Request to print as below

Hi all

I have a table with a column (say PRJ_ID) whose value as

PRJ_ID

-----------

1

1.1

1.2

1.3

2

2.1

2.2

3

3.1

3.1.1

3.1.2

3.1.3

3.2

3.2.1

3.2.2

3.3

3.3.1

3.3.2

3.3.3

3.4

3.4.1

3.4.2

3.4.3

4

I need to create the tree of the hierarchy for this field as

1

1.1

1.2

1.3

2

2.1

2.2

3

3.1

3.1.1

3.1.2

3.1.3

3.2

3.2.1

3.2.2

3.3

3.3.1

3.3.2

3.3.3

3.4

3.4.1

3.4.2

3.4.3

4

Please give the query to print like this in two columns, one for the mother and the other children.

I need to store these values in the table as

PAR_ID CHL_ID

---------------------------

1             1.1

1             1.2

1             1.3

2             2.1

2            2.2

3             3.1

3              3.2

3              3.3

3              3.4

3.1 3.1.1

3.1 3.1.2

3.1 3.1.3

.. and so

Thank you

Su.GI

Looks like you are looking for:

Select prior prj_id parent,.

child prj_id

your table

where prior prj_id is not null

Start with instr(prj_id,'.') = 0

connect prj_id = prior prj_id | substr (prj_id, InStr(prj_id,'.',-1))

/

For example:

with t as)

Select '1' prj_id of all double union

Select ' 1.1' in any union.

Select ' 1.2' in any union.

Select ' 1.3' in any union.

Select "2" in the dual union all

Select "2.1"in any union.

Select "2.2" in double union

Select "3" in the dual union all

Select "3.1"in any union.

Select ' 3.1.1"throughout Union double

Select "3.1.2" in any double Union

Select "3.1.3" in any double Union

Select "3.2"in any union.

Select "3.2.1" in any double Union

Select "3.2.2" in any double Union

Select "3.3" in any double Union

Select ' 3.3.1"all Union double

Select ' 3.3.2"throughout Union double

Select "3.3.3" in any double Union

Select "3.4" in any double Union

Select "3.4.1" in any double Union

Select "3.4.2" across double Union

Select "3.4.3" across double Union

Select '4' double

)

Select prior prj_id parent,.

child prj_id

t

where prior prj_id is not null

Start with instr(prj_id,'.') = 0

connect prj_id = prior prj_id | substr (prj_id, InStr(prj_id,'.',-1))

/

PAREN CHILD
----- -----
1 1.1
1 1.2
1 1.3
2 2.1
2 2.2
3 3.1
3.1 3.1.1
3.1 3.1.2
3.1 3.1.3
3 3.2
3.2 3.2.1

PAREN CHILD
----- -----
3.2 3.2.2
3 3.3
3.3 3.3.1
3.3 3.3.2
3.3 3.3.3
3 3.4
3.4 3.4.1
3.4 3.4.2
3.4 3.4.3

20 selected lines.

SQL >

SY.

Tags: Database

Similar Questions

  • All-in-one HP Deskjet 2540: delete at the request of print job on a deskjet printer MAC OS 2540 x 10.9

    How can I delete a regular print job to a 2540 MAC OSX 10.9 deskjet printer.  I can pause, but may not know how to remove it completely.

    Hello @annetrumbo,

    Welcome to the Forums of HP Support!

    I would like to help you today with removal of a print job in the print queue for your all-in-one printer of HP Deskjet 2540 on your computer Mac OS X 10.9. Can I please you follow the steps below.

    1. click on the Apple icon in the upper left corner of your computer screen

    2. click on System Preferences

    3. click on Print & Scan

    4. click on printer Deskjet on the left to highlight

    5. click on Open Print Queue on the right side

    6. in the print queue window, click the print job you want to delete. Then click on Remove in the top left corner. Once the print queue window is clear, you will have a nice clean slate for your printer.

    Please let me know if this procedure works for you. Good luck!

  • It takes a long time to send the request to print a PDF file

    Whenever I send a request for a PDF to print to a printer, it takes time for the system to respond. It takes even longer for printer receive my print request. Why?

    Read some messages in this forum, but nothing works. Adobe needs to take a look at this issue, it affects a large number of users. For this reason, Adobe Reader sucks.

    Hi mikel007,

    Open Acrobat Reader DC, go to the Help menu and repair the installation.

    Also check the updates under the Help menu. If any please install.

    If the problem persists, try the solutions listed in this KB doc.   Acrobat and Reader help / troubleshooting PDF printing | Adobe Acrobat, Adobe Reader

    Kind regards

    Nicos

  • New feature request: white printing setting the balance in the print Module?

    At the present time, the print Module has adjustments to compensate for the brightness and contrast prints. It would be very useful to also add the White Balance, because usually screens are calibrated to another white point and prints are warmer.

    Thank you

    If everything is calibrated right you shouldn't need the brightness sliders, contrast, or the Balance of whites in the print Module.  They are just hacks.

  • Necessary request for the situation below.

    Hi all

    I have two table

    T1-> deal_site_id, subsection_id
    T2-> deal_site_id, subsection_id, catalog_id

    requirement is first of all that I have to check all the subsection_id of the T1 table based on a deal_site_id.
    So subsection_id what ever I get from table T1 I have to check if those that are available in table T2. If they are available, then do nothing, but if they are not available in table T2, then delete the row in the table T1.

    I tried to write the query as below but stuck with the exception.

    DELETE FROM (SELECT * FROM T1 join T2 ld lid inner)
    COVER ON. DEAL_SITE_ID = LD. DEAL_SITE_ID
    WHERE lid.deal_site_id = 3070
    AND LD. SUBSECTION_ID NOT IN (SELECT DISTINCT liod.subsection_id liod T1 where liod.deal_site_id = 3070)
    );

    This gives me an exception as ORA-01752: cannot delete the view without exactly a key preserved table
    Please help me to write this query. Thanks in advance.

    Kind regards
    Delphine

    Published by: sumajumd on February 2, 2012 03:08

    Hi, Ludo,.

    It looks like:

    DELETE FROM     t1
    WHERE     deal_site_id     = 3070     -- or whatever
    AND     subsection_id   NOT IN (
                          SELECT  subsection_id
                          FROM    t2
                          WHERE   deal_site_id     = t1.deal_site_id
                          AND       subsection_id     IS NOT NULL     -- If necessary
                                  )
    ;
    

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    In the case of a DML operation (for example, REMOVE) the sample data should show what look like the paintings before the DML, and results will be the content of the or the tables changed after the DML.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • How do I get my task bar icons, now on the left, back on the bottom of my Windows screen - see print screen below (have no idea how it happened)

    I'm not a supercomputer user, so please keep it simple.

    Ok. It is the taskbar all moved to the left. Just do what I suggested in my first answer.
     
    Right click on the Start button. Properties | Taskbar and change the location to the bottom.
     
    Or, what you probably read on: right click on a place empty, as between the upper icons and notification icons and unlock the taskbar. Then left click on an empty spot and drag the taskbar to the bottom and relock it.
     
  • Office jet pro 8500 a: elimination of printer, was this encrypted model? How to destroy the hard drive?

    This model encrypted?

    If this is not the case, how to destroy the hard drive? Where is the hard drive?

    Hi @Diane47,

    Thanks for joining the Forums of HP Support with your request to printer.

    I understand that you have a HP Officejet Pro 8500 has e-all-in-one printer you plan to elimination and you wonder if the hard disk is encrypted and how to destroy the hard drive. I would like to help with that.

    HP Officejet Pro 8500 has e-all-in-one printer don't have a hard drive. It contains a very small amout of memory, so it can keep in memory the printer and fax settings.

    You can clear the memory by restyoring the printer back to the default values.

    1. on the printer Panel, select Setup.

    2. from the Configuration menu, select Tools.

    3. on the Tools menu, select Restore Factory Defaults.

    HP offers to recycle their products for you. If you want to know more about it, please click here.

    Please let me know if that solves the problem, or if you need assistance.

    Indeed, if this help you to achieve a solution please click the 'accept as Solution' and the 'thumbs up' buttons down below in this message.

    Thank you!

  • Color Laserjet M252N: HP Color Laserjet Pro printer M252N for Windows XP Embedded Standard.

    I can't install the driver HP Color Laserjet Pro printer M252N to my machine (OS: Win XP Embedded Std version) without an internet connection.

    1 error message are requested in advance for MS .net framework 3.5. (after that, I download and installed: NETCFSetupv35.msi)

    I found the name of the printer in the list of drivers, but then I try to add a new printer with this driver, the pop-up error message and the installation is not complete.

    My question is: the HP Color Laserjet Pro printer M252N are not compatible with Win XP Embedded Std?

    Please help, even the HP sales technician unable to answer me to this questation.

    Hello

    The HP Color Laserjet Pro M252N Featuer software complete is not supported on Windows XP, however you can get the features of the printer using HP PCL 6 Universal Print Driver listed on page 9 of the User Guide, be aware that the Service Pack 3 must be installed on the operating system to use the printer:

    Make a right click my computer and select Properties - locate Service Pack 3 in this form... If Service Pack 3 is not the operating system MUST be updated first:

    http://h10032.www1.HP.com/CTG/manual/c04475955

    You can download the HP Universal Print Driver below:

    http://ftp.HP.com/pub/softlib/software13/COL39348/LJ-95977-14/UPD-PCL6-x32-6.2.1.20636.exe

    As Windows Embedded edition is an edition of the customized version no official support is guaranteed.

    It is a customized operating system version includes only the components of the operating system selected for specific needs.

    Those selected by the OEM computer and not necessarily include any component required by the HP software or hardware.

    Try to install the printer and see if this can work, however it can work as explained and may not only the manufacturer of the computer can respond if such material can be installed on the operating system or not...

    Kind regards

    Shlomi

  • DeskJet 4535 & 1606dn laserjet: impossible to print some HP printable worksheets & impossible to remove the existing connected HP printer

    Hello.

    I just bought a new printer HP Deskjet 4535 at home and he registered so far as I can use HP pritables for my children. However I later discovered that another printer HP (Laserjet 1606dn) was alos registered to work under the same account. When I'm going to connect HP and list printable HP the default printer is the one labour (1606dn). Some pads cannot be printed for a reason any.  When I view the printable he says "it's available to print directly from your printer. Click on Add to My printable to print at the request of your printer display. ", but when I click on"Add to my platelets"it gives the error message"we couldn't add this printable. This printable is not supported on your printer. ».  Please help me solve this problem!

    Thanks in advance.

    Hi @cakmak,

    Thanks for joining the Forums of HP Support for a solution to your problem of HP pads.

    I understand that you have purchased a HP DeskJet 4535 use with HP all-in-one printer printable, but your work computer, HP Laserjet 1606dn, becomes in the way to be able to add a printable HP for your HP DeskJet 4535. I would like to help with that.

    When you go to HP connected , you should be able to remove the HP Laserjet 1606dn clicking the devices tab. The printer should be listed with its HP ePrint e-mail address and button settings below it. If you click on the settings button, there should be a picture of the Laserjet Printer and a "delete printer" option below that you can click to remove.

    Here is a document of support when troubleshooting printable HP - troubleshooting problems with HP ePrint printable.

    Please let me know if that solves the problem, or if you need assistance.
  • My Kodak Printer ESP7200 stop working

    Printer was off when I sent the document to it.  I disconnected expect that the document prints the next time that I accessed computer and printer. Now the printer will not respond to requests for print

    Hi JOAQUIN GMADRIL,

    You get the error message?

    Step 1: Run the Fixit available in the link below:

    Troubleshooting printer problems

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

    Step 2: Restart the print spooler service.

    To restart the print spooler service, follow these steps.

    (a) click Start, type services.msc in the search box, and then click services.msc in the list programs.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) click Print Spooler, and then click on stop.

    (d) click Print Spooler, and then click Start.

    Restart the computer, and then check if the problem is resolved.

  • Have Photosmart Premium C310a. Ongoing problem to the loss of communication with the printer

    I have a HP Photosmart Premium 310 Ca and am running Windows XP.  About every month my computer loses contact with the printer.  The network works fine as is my email.  I tried restarting the computer, reset my router and the Setup error following to get instructions from XP. I tried to reinstall, and I can't seem to install.  I'm tired of this!

    I'm sorry that you are having this problem. There are several steps you can take to help your connection problem. First of all, when the printer is connected to your network, print a Network Setup page. On this page, use the ip address of the printer and that type in the address bar of your internet browser on your computer. Will take you to the server of the web integrated printer (EWS). Look for the Networking tab change the automatic ip addressing to public static ip (manual). You will then enter the ip address of the printer, followed by the subnet mask, and finally the default gateway, the info that will be on the Network Setup page you printed. Below, you'll assign 8.8.8.8 and 8.8.4.4 as the primary and secondary DNS. Who should manage the intermittent connection loss problems. With automatic addressing, the printer can request a new address whenever there is a network problem, which confuses the printer. Static IP or manual addressing, is tackling this problem. Let me know if it helps.

  • How to get 'Print', 'Download' and 'Back' link when navigate using go the URL

    I have a report R2, there a chart based on PivotTable. This report is called from another report R1 using the feature to the URL. Report R2 does not 'Print', 'Download' and 'back' link when it is called R1. But if I run R2 as it shows the report asandalone 'Print' and 'Download' links.

    can you pls suggest how I can get 'Print', 'Download' and 'back' links when R2 is called from R1 using the feature to the URL.

    You will usually use GO Url to integrate with external portal, so there is no value 'return' for the parameter 'Options '.

    The possible values for the link Options are:
    m change request
    f print version
    d - download to Excel
    r - refresh results

    If you need to view back, you can add another parameter called Done like below and provide the explicit path to where you want to go. For example, in the example below, I would go back to answers to myreport

    http://prakashj:7777/Analytics/saw.dll?go&path=/users/administrator/myreport2&options=rmfd&done=answers%26path=/users/administrator/MyReport

    HTH,
    Prakash

    Published by: prakah on August 17, 2009 08:51

    Published by: prakah on August 17, 2009 09:03

  • Print reports in landscape format and page breaks

    Hello

    How can I change the print settings so that a report in response to the request is printed in landscape format directely.

    The only way I know is to use a code java and html in a narrative mode. The problem is, it changes the style of the report, but before you print, you will need to change printersettings in landscape mode.


    And another question: is it possible to set breaks page for printing. If I set the page breaks on the properties of the table is the fine for the display but for printing, I have to view each page and print it. With a narrative view, it is not even possible to page breaks.


    The only way I found to make the two page breaks and landscape, formatted for printing is the download to an excel file.


    Is that a way to apply printing directely in page breaks and the landscape without using a download?

    See you soon,.

    Myriam

    Myriam,

    If you are looking for print command. which is available in the answers - Layout Compound. Compound layout, below ├a composed of layout (view) falling down, you will see the toolbar, the first with the hand icon is "Print and PDF Control."

    If you click on the one that open a small pop, where you can set the print settings.

    If I got second question correctly you can set this with PivotTables. Not sure of the answer, try to use sections in PivotTables. In the properties of the section, there is an option to "Insert Page break." Just try once.

    -Madan

  • How to connect HPdeskjet 2546 printer to the HP slate 21 Tablet

    connection between HP DJ 2540/slate21

    Hello

    You cannot connect through a USB port, so you will need to print to connect wireless networks using either the 21 slate and the printer on the same wireless network in your home or you also have the choice of wireless direct printing.

    If it is available, I always find the connection for the network devices wireless easier than printing directly home.  To do this follow the instructions that came with your printer to connect to your home network.  I also suggest following the instructions of ePrint must also be provided.  Then connect your tab 21 for the same wireless usinf settings > > Wifi.  Once this is complete, you should be able to use the print option available in configurations for some applications, the HP ePrint application or Google Cloud Print,

    As said the other option is direct wireless printing.  Follow the instructions on your printer to set up.  Then now you slate 21 go to settings > > Wifi and choose to connect to your printer.  Then you should be able to print option available in configurations for certain applications or the HP ePrint request to print.  The disadvantage of this method is that you cannot be connected to your printer and the internet, so it's a bit restrictive.

    I hope this helps.

    Kind regards

    COWA

    HP employee

  • LasrerJet P2015n: Low error when printing with ePrint to a LaserJet P2015n on iOS supplies

    "Hi, I'm using the HP LaserJet P2015n, which works very well, however try to print using ePrint on iOS 8.3 seems to cause problems. If the application finds the printer on the network, and try to print, it invites a mistake "we have detected you are low on supplies error" obviously is not the case, because it is more than 50% of the full and prints very well using the desktop computer. The printer error LED keeps blinking and won't not even respond to a request for printing office. It must be restarted to work again.

    Tried all kinds of reboot and reset. I also tried to find a solution with no luck, there is no updated firmware for this printer can be found as well.

    Any help will be very appreciated!

    @hussain316

    Thank you, based on the information you provided... the p2015 is not taken care of with ePrint. That's why whenever you send a print job for printing, the printer responds with error messages and you have to pick up then power cycle the computers can be printed successfully on it.

    If you want to start mobile printing, then you will need to upgrade to a new printer with function ePrint. Depending on your price range, the new m277 is a nice little printer and has this ability.

    Sorry

Maybe you are looking for