LISTAGG in connect motion

Hi How do I use the listagg in the following query, something like

select obj_name, obj_child, LISTAGG(obj_parent, ',') WITHIN GROUP (ORDER BY obj_parent)  obj_parents

in this query
WITH hierarchical AS ( 
          SELECT  obj_parent  
                , li.obj_name    
                , li.obj_type    
                , li.obj_title  
                , li.DESCRIPTION      
                , LEVEL AS lvl  
                , SYS_CONNECT_BY_PATH(li.obj_name, '/')paths      
            FROM cal_obj li    
            LEFT JOIN cal_erd_link er ON (li.obj_name = er.obj_child)  
                START WITH obj_parent IS NULL    
                CONNECT BY      
                        NOCYCLE PRIOR obj_name = obj_parent 
                        )                              
    , childs_parents AS ( 
                  SELECT  obj_name 
                        , LEAD(obj_name) OVER(PARTITION BY substr(paths, 1 ,  
                                              CASE WHEN INSTR(paths, '/', 1, 2) > 0 
                                                    THEN INSTR(paths, '/', 1, 2) -1  
                                                    ELSE LENGTH(paths)  
                                                END)ORDER BY paths) AS child_name  
                        , substr(paths,                            
                                      INSTR(paths, '/', 1, CASE WHEN lvl > 1 THEN lvl-1 END) + 1 ,      
                                      INSTR(paths, '/', 1, CASE WHEN lvl > 1 THEN lvl END)                        
                                    - INSTR(paths, '/', 1, CASE WHEN lvl > 1 THEN lvl-1 END) - 1 ) AS parent_name  
                        , obj_type      
                        , obj_title    
                        , DESCRIPTION      
                        
                  FROM hierarchical 
                  )  
    SELECT *    
      FROM childs_parents
 

Hello

Maybe you want something like:

WITH by_parent AS

(

SELECT obj_parent

LISTAGG (obj_child, ",") THE Group (ORDER BY obj_child) AS obj_children,

OF cal_erd_link

GROUP BY obj_parent

)

by_child AS

(

SELECT obj_child

LISTAGG (obj_parent, ",") THE Group (ORDER BY obj_parent) AS obj_parents,

OF cal_erd_link

GROUP BY obj_child

)

SELECT NVL (p.obj_parent, c.obj_child) obj_name

p.obj_children

c.obj_parents

OF by_child c

FULL OUTER JOIN by_parent p ON p.obj_parent = c.obj_child

;

However, given the sample of data that upi posted in response #4, it does not exactly what you asked in any of your messages.  The results it produces are:

OBJ_NAME OBJ_CHILDREN OBJ_PARENTS

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

SecondObject, ThirdObject MainObject

SecondObject FourthObject, ThirdObject MainObject

FourthObject SecondObject

ThirdObject MainObject, SecondObject

Tags: Database

Similar Questions

  • Text of motion 5 does not work in FCP

    Hi, I just bought Motion to complete urgent work requiring text effect overlays 'fantasy' on 10 promotional clips. I did a few sequences in Motion 5, very simple, those using their models... they're all very well in motion. When I record and report to the Final Cut are not at all... for example that the first letter made its appearance of a model effect ' deal in. I tried a restart of the computer. I use the latest version of Final Cut on a year old Macbook Pro laptop. Any help would be greatly appreciated. Thanks in advance.

    When I record and report to Final Cut

    What does that mean? What are you doing exactly? You publish settings? Give details.

    You can also export a title animation using the codec ProRes 4444 and lay in FCP as a piece of connected video.

  • When opening my e-mail address, the E-mail entire table up and down for about 5 seconds. Because of the motion, I opened that badly. How to stop this movement?

    I use ASUS computer laptop and windows 7. When I opened my e-mail, the whole e-mail message table continues to move vertically for about 5 seconds and would then become immobile. Then only I can select a message and open. When I'm done with the reading of a message, and close it, it goes up and down motion again. Because of this instability, sometimes I open or delete the wrong message. What is the problem, can anyone help?

    First of all, update Firefox 16.0.1. Update Firefox to the latest version

    Then, try to read Web sites look bad or appear differently than they should and Refresh Firefox – reset settings and Add-ons. This could be just pictures of loading slowly, you have a slower internet connection with this computer?

  • How can I move motion 5 to another computer

    I have 5 Motion on a Mac and I would remove it and use it on another Mac. How can I transfer the software?

    Thank you

    To remove 100%, download the app free "FCS Remover" of digital rebellion (dot com) and use it to delete the application.

    To install it on another Mac, launch the App Store, go to the Store menu and connect to your iTunes/App Store account.

    Go to the section purchase, then click on the install button to the right of point 5, or any other application purchased through the App Store.

  • Pencil of Apple constantly losing connection

    Hello world.

    Just wondering if anyone else has this problem. My apple pencil works very well for about five minutes, then stops working and must be synchronized with my iPad. Bluetooth settings say that it is still connected, but it does not work until it is synchronized. I tried switching and Bluetooth off, I also tried ' forget device "in the Bluetooth options and back in place. I also tried to restart and hard reset my iPad, I also made sure the pencil is responsible and the tip is a crew on. Nothing has worked yet. Any suggestions or some fellow sufferers out there?

    Thank you very much in advance for any input

    Dave

    Wanted to just call and say if you encounter the same problem, it is best to contact apple support because it is very likely that you have a defective unit.

    To make sure that it wasn't my iPad which was defective, I joined another Bluetooth device which worked without any problems. In my case I found actually if I shook the pencil vigorously for a few seconds, he began to work again, it seems as if it was probably a questionable motion detector.

    Anyway, yesterday I received my new pencil, and it works perfectly... Happy days!

  • Computers stops after the connection to the server

    Hello geniuses.

    I'm having a strange problem and I know it won't be easy to diagnose, but let's give it a shot.  I have two iMacs in my studio, a 4 k and a 5 k, with El Capitan 10.11.2 and both connected to an ethernet network and talk to a server on a Mac Mini (latest OS and OS X Server).

    I mention the server, because I think it may be interesting, but that's just a guess.

    Basically both of these computers have a strange inability to stop.  You choose stop and they go through the motions all the way to the black screen with the toothed wheel turn, and then it just lingers there.  Forever.  Well, at least 24 hours because it is the longest, that it went unnoticed at the time.  Usually, I wait a few minutes and then make a stop of the force.  (I wait a few minutes because sometimes, not often, but sometimes, the computers will be correctly closed.)

    Both machines are wired on the server and use frequently shared fire (SMB and AFP) to load files on networked drives.  Yet once again, I mention this because this is the common point between these machines that seems to be the exception to a common use, and I wonder if the connection to the server is the process that prevents computers from closing properly.

    If anyone can help point me in the right direction would be great.

    Thank you!

    Well I guess this problem is unique to me, however, if someone else liquidate the same problem, I think I have it solved.  I changed the file sharing preferences to just AFP (disabled SMB).  This seems to have solved a variety of issues that I had with my network, including iMacs hanging on closing down.

  • Satellite P100-277 - recovery connection and WLAN problem

    Hi, I have a Satellite P100-227 and of the format and reinstall windows. First of all, the Toshiba Recovery disk wouldn't work - it would go through the motions, but windows would freeze on the screen where it is intended to calibrate your screen before entering the windows installation. It is the SECOND disc I bought at Toshiba who broke by the way! I'm worried about my CD before ask you, I used this disc once before to shape about a year ago and it has not been touched for. I tried both discs and no work - the other oldest won't read even since the drivers of compression at the beginning of the recovery.

    So I'm an old XP disc (I run XP btw) and decided to try to install windows this way to check that my laptop was working, which is - I installed XP very well to a good Windows disc and a code is legitimate. However, I have now no drivers for my laptop and the internet does not work - my wireless will not connect at all, let alone register that there is a wireless connection (he used to appear in the lower right, once it was turned on). "When I go to Device Manager and look for network adapters, all there is ' 1394 Net adapter" is said works very well.

    I wonder if there is no drivers for my wireless card, as I have not used the Toshiba restore disk. I tried to put in the 'work' toshiba disk in to see if there are drivers out there that I can access but can't find anything. I can't afford, or be bothered to order a different CD from Toshiba that will break after a format, so my question is; can someone link me to the drivers/software I need for my laptop to connect wirelessley to internet please?

    I hope I gave enough information for a person to be able to answer me - I need my laptop ASAP to work!

    Thank you!

    Hello

    Perhaps this Toshiba HowTo might help you:
    http://forums.computers.Toshiba-Europe.com/forums/Ann.jspa?annID=78

    I think that you didn t find a good driver Wlan and that's why you couldn't get the WLan to work.
    Check the Wlan card, then you will get the right driver.

    PS; Here you can find all WLan drivers for Toshiba laptops.
    http://APS2.toshiba-tro.de/WLAN/

  • Unable to connect to Epson WF-7510after El Capitan upgrade

    I'm at my wit's end. Since the upgrade to El Capitan, I am totally unable to connect to my printer Epson WF-7510. At one point he has appeared on the list of printers and Scanners but not more. If I try to add a new printer, the system finds, going even through the motions of configuration and is not on the list. The printer is connected to Wifi, all the drivers are up to date, Apple says that it's compatible with El Capitan, the computer seems to even know it's there. What the hell did I miss?

    "At a time that he has appeared on the list of printers and Scanners, but no more."

    Re download drivers > http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=183584&infoType=Dow nloads

    Then go to System Preferences > Printers & Scanners > print, and then click ➕ to add the printer.

  • connection of the controller

    Hello

    I bought a stepper motor (http://www.newmarksystems.com/linear-positioners/nls4-series/)

    and a controller (http://www.newmarksystems.com/motion-controllers/nsc-a1/).

    How can I connect my controller to the labview?

    I used the driver instrumentation to find in the bt software, it can not find the controller driver. The motor company step by step gave me a .dll file and they said that you can connect to lsbview.

    I would be gratefull if anyone can answer my question.

    Kind regards

    Hamza

    A .llb file is a library of "Zipped upward" LabVIEW vi in a single file.  LabVIEW can open directly.

    No you don't need a .dll file.  You were the one who grew up.

  • OR-Motion PXI Card Device Status = does not

    I can't connect with my motion NI PXI-7358 Controller card.  The general tab in MAX for the map shows that "Device status" = "does not" see the attachment.  I've not mapped and matched the remote device.  I also removed and re-installed PXI card without success.

    Hi Jeffmg,

    This seems to be a known issue. There is an internal knowledge base documenting this problem and a potential solution.

    The solution according to the KB article:

    "This problem can occur when a previous jury has been mapped to the host machine. The NIMtnSvr.exe is based on the ID Board and sometimes gets stuck. To resolve this problem, close any software OR run, and then open the Task Manager and end the process of NIMtnSvr.exe. This will disable the server and allow it to start again, the next time that it runs. When you open MAX, the boards will be displayed on the local host that is mapped correctly. »

    N

  • DeskJet 6940: ethernet connection between the new modem and printer does not transmit Mac

    I just installed a new modem to Qwest; It works wirelessly with my iMac 10.11. My old (but functional until yesterday) Deskjet 6940 is connected to the modem via Ethernet. When I try to print, the document seems to be transmitted to the printer, but then it hangs on and I get the message "the printer is not connected" - which it is, plugged, ethernetted, and set in motion. Support of Qwest says that only 10% of the info from the computer are the printer, but he seems to think that the part of the new modem Ethernet is functional,

    I have already tried all unplug/restart/send/add printer new check/updates / IP (cannot connect) / ethernet ports and cables, etc.

    Any other ideas?

    Thank you!

    Hi @newgranny,

    Thanks for getting back to me.

    It is good that the printer has been able to print a diagnostic page.

    Ensure that the router and firewall on the market do not block these ports.

    Ports of printing:

    • UDP ports: 427, 137, 161
    • TCP port: 9100

    Card photo upload:

    • UDP ports: 137, 138, 427
    • TCP port: 139

    The HP device status:

    • UDP port: 161

    Ports of Web Services:

    • UDP and TCP: 80, 443, 5222 and 5223

    Hello Ports:

    • TCP and UDP: 5353 and 5297, 5298

    Unplug the wired network (ethernet cable), restore the default values on the printer.

    Restore the default settings.

    Follow these steps to reset the printer to factory default settings:

    1. check that the printer is on.

    2. press and hold down the button to report Page.

    3 while holding down three times the homepage button, press the Cancel button.

    4. release the report Page button.

    Source

    • Restart the printer.
    • Connect the ethernet cable.
    • What were the results?

    If the problem persists, try the USB connection.

    Please reply to this message with the results. Good luck!

  • Derives from the system time when calling OR-Motion screw on PXI controllers

    Hello

    Just an email to avoid others wasting time when they are facing in this fantasy bug:

    We use PXI systems with Controllers NI PXI running Windows 7 and the 7340 family cards (PXI-7344). We have noticed that when the calls when it's through screws OR-Motion to question the different registers of the State (e.g. position, ADC value, general axis or the reference state) axis, the (Windows) system clock runs FASTER either. OR-Motion calls most are performed per second, faster windows clock works. When you get into the status for 4 axes 10 times per second (lines 100 ms rate), the drift is greater than 5%!

    I include here an example of program that reproduces this behavior.

    It is an essential question, for example if save you data with or from the timestamps, and it gets even worse if Windows is configured to periodically synchronize its own clock to a server via the NTP Protocol (it's how we noticed this problem in the first place). In this case, you see large discontinuities in your data every once in a while. Our systems must be running automatically and record data continuously throughout the year, so this bug is a real challenge.

    People at NOR been able to reproduce this bug too and are working on it (no idea of any CAR # yet). Note that this problem has not been seen on a DC non - OR Office running Windows 7 64 bit...

    The exact configuration is the following:

    Chassis PXI-1036

    PXI-8101 (or PXI-8102 on another system) controller

    4 PXI-7340 axes into the Groove 4, no physical connection for this test

    (PXI-6221 in slot 2, not used in this sample program)

    Windows 7 Enterprise SP1 32-bit English

    LabVIEW 2011 SP1 32-bit English

    OR-Motion 8.3

    2.6.2 PXI platform services

    (all software OR additional distribution 2012 DS1)

    Controller BIOS: improved 1.3.1 to 2.0.1f0, problem given the two versions of the BIOS

    I'll try to post here as soon as we receive news of NEITHER.

    Kind regards

    Vincent

    Hi all

    I wanted to let you know that the driver OR Motion 8.4 coming should solve this problem.

    Best regards

  • SMU-4139 - connection to the DUT Board with triax

    I'll build a plate of HAD that connects to my SMU-4139 SMUs with triaxial cable. What is the best way to set up the connection of HI/LO/SENSE_LO/SENSE_HIGH/GUARD to the lower cable triax?

    SLABTechGuy,

    This document shows the connection to Triax cables and SMEs:

    http://zone.NI.com/reference/en-XX/help/370736F-01/ni_dc_power_supplies_help/gaurding/

    J.hallabi,

    This is an issue that needs to be posted here:

    https://forums.NI.com/T5/motion-control-and-motor-drives/BD-p/240

  • VAIO Motion Eye Camera stop working

    Laptop: VGN-SR190E
    Problem: USB Motion Eye Camera stop working
    OS: Vista Edition Home Premium

    The Sony Visual Communication Camera died in this laptop. I want to talk about the "Motion Eye" webcam above the screen.

    In the Arcsoft window, frame (window of the camera) went black, screen resolution went to 176 x 144 (QCIF), whatever that means.
    In addition, no image using Windows Live Messenger.

    Worked very well (image capture), then quit. Removed and reinstalled the drivers. No help. In the properties of the device, he says: "this device works correctly. Well maybe, but no picture.

    What else can I do to fix this?

    I can't stand Vista another day. I ordered Windows 7. I hope that its an improvement. Could install Windows 7 remedy? I guess I'll find out.

    Any ideas would be appreciated.

    Thank you
    Phil

    Update: not working yet.

    Error message in Arcsoft WebCam Companion:
    'Webcam not found or does not work properly. Please click the Connect button and try again.

    Previous post:
    No help from this Forum, but I got the Motion Eye Cam working again. He would sometimes work for a minute or two and then quit. I thought it would be connected USB so I downloaded the registry USB patch (and a whole bunch of other updates and more) and installed it. After the patch USB Webcam has started working again. I don't know if it was the fix, but its working now. The Vaio "Updater" program did not work (it should be updated as well) so I had no idea there were so much software upgrades available for this laptop. I highly suggest that you check the Sony Web site for downloads (if you did not) available for your computer. Good luck.

  • How do I use the sony vaio VPCEC3S0E built in motion eye camera I have attached looking for the correct drivers but could not locate them

    How do I use the sony vaio VPCEC3S0E built in motion eye camera I have attached looking for the correct drivers but could not locate them

    Hello

    Troubleshoot camera connection
    http://Windows.Microsoft.com/en-us/Windows7/Troubleshoot-camera-connection-problems

    You probably need to recharge the device drivers and camera control software (usually included
    with the drivers and installed at the same time).

    Login as an administrator.

    Double-click Control Panel / Device Manager - Imaging - writing down of the brand and model of camera.
    on this subject and on the tab of the driver is version. Now, click on update drivers (who are unable to do anything as MS
    is far behind the pilots of certification). RIGHT click on the camera - UNINSTALL - REBOOT - it
    will update the driver stack.

    Now, go to the system manufacturer's website and download the latest driver for the camera and the other related camera
    software (if not more recent get the same).

    Download - SAVE - go to them and RIGHT CLICK - RUN AS ADMIN - reboot after each driver.

    Manually look at the sites of the manufacturer for drivers.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Installation and update of drivers to 7 (update drivers manually using the methods above is preferred
    to make sure that the latest drivers from the manufacturer of system and device manufacturers are located)
    http://www.SevenForums.com/tutorials/43216-installing-updating-drivers-7-a.html

    Then let windows updates on however prevent loading of drivers who are often older than the
    those that you have installed. If updates suggests a pilot and then HIDE it and watch manually to see if their
    really is a more recent version (at the time system manufacturer and the sites of the manufacturer of the device).

    Stop Windows 7 to automatically install device drivers
    http://helpdeskgeek.com/Windows-7/stop-Windows-7-from-automatically-installing-device-drivers/

    How to disable automatic driver Installation in Windows 7 / Vista
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/

    Turn off Windows Update Device Driver search prompt in Windows 7 / Vista (for professionals,
    Ultimate and Enterprise)
    http://www.AddictiveTips.com/Windows-tips/disable-Windows-Update-device-driver-search-prompt/

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

    Check with the Sony Support, their online documentation and drivers (update or reinstall).
    and their forums.

    Sony - Contacts
    http://eSupport.Sony.com/us/Perl/contact-land.pl

    Sony - drivers
    http://eSupport.Sony.com/Perl/select-System.pl

    Sony - Support
    http://eSupport.Sony.com/

    Sony - Forum
    https://Forum.sel.Sony.com/?XID=M:Showcase:eSupport

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for