If A = B and B = C, ensure you have a query that says A = C

Hi all

My requirement is something like: I have a table with two columns:

COLA, COLB

A AND B
B AND C

Now, I need to analyze these documents and to understand that if A = B and B = C, then I need to insert the third record in the table as below:

A C

I tried queries hierarchical, but unable to meet the requirement. Any help is very appreciated.

Thanks in advance,
RAM Mohan T
with tab as (
select 'a' cola, 'b' colb from dual union all
select 'b' cola, 'c' colb from dual
)
select connect_by_root(cola),colb
  from tab
 where connect_by_isleaf=1
   and level > 1
 connect by prior colb = cola
;

--
Timo Raitalaakso
http://rafudb.blogspot.com

Tags: Database

Similar Questions

  • SOS... I don't know what is happening, but when I import the photos to LR5, looks like I have a "Preset" which I did not and the white balance becomes 'custom '... You have an answer that I can solve this problem? Thank you.

    SOS... I don't know what is happening, but when I import the photos to LR5, looks like I have a "Preset" which I did not and the white balance becomes 'custom '... You have an answer that I can solve this problem? Thank you.

    Possibly, you have made changes to your 'by default develop settings'. The default WB in Lightroom should be "under the shot" to view this selection has recently imported a file raw in the develop Module, click history in the left panel, click on the first import. (see screen capture) and then see what settings have been applied to import for the white balance it must be 'in the know '.

  • You have to worry that my social media/email is compromised on macbook?

    I just clicked on a link facebook earlier that led me to a site 'facebook' false asking me to give them permission to access my public profile, I clicked on "Cancel" on the pop up instead of just close the tab (yes I know it's stupid).

    Then he took me to a site of fake "macbook" with a window telling me that my password is too simple and it can be hacked, then it brings me to a site to suggest me to download a 'helper', I managed to close the window "download helper" but I couldn't close the window of fake macbook , every time I close it, it would just pop upward.

    I was using chrome and I decided to force quit the browser.

    Should I do something before entering my social media/e-mail? I mean it's a little too late now, but there are all kinds of "scan", I should perform on my mac? You have to worry that my email and facebook accounts have been compromised?

    Thank you

    I should clarify, I do not end up clicking on anything to download any software, if there was software downloaded without my permission I don't know.

  • When the BIOS on an IBM netvista starts you get a message that says "no operating system found"

    When the BIOS on an IBM netvista starts you get a message that says "no operating system found" press f1 to repeat boot sequence. but I need to change the boot sequence... Please help!

    Hello

    1. What is the operating system installed on your computer?

    2. don't you make changes to the computer before the show?

    Method 1:

    To change the boot order you must restart the computer and before you get the IBM logo on the screen start to type the F10 key to get the boot sequence menu.

    If you are not able to change the boot order by pressing the F10 key, please see the user manual to change the boot order.

    Method 2:

    Please see the links below.

    "Operating system not found" or "Missing operating system" error message when you start your Windows XP-based computer

    http://support.Microsoft.com/kb/321626

    No operating system is found when a Windows Vista-based computer is started, even if the computer worked correctly for a while

    http://support.Microsoft.com/kb/932932

  • the gme and NEXON combat arms was not letting me use the wasd keys to control. so I left the game, and when I stopped I had a noticce that says error code 21

    original title: Devicewhat is the error code 21

    I went on the nexon combat arms and the gme was not letting me use the wasd keys to control. so I left the game, and when I stop, I got a noticce that says error code 21! What it means?

    Hello

    We really need more information - ask in the games and/or Windows Forums for your
    version of Windows.

    Answers - Windows Forums
    http://answers.Microsoft.com/en-us/Windows

    You can also check your version of Windows, then good topic Windows: games.

    It is a question where you may need to actually test in several forums.

    Don't forget to check the known issues with the support from the game and forums, but also any device
    in question.

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

    Reboot to see if the problem comes back.

    Here are the general meaning.

    21

    Windows removes this device. (Code 21)

    Wait a few seconds, and then refresh the display of the Device Manager. If the device appears, restart the computer.

    I hope this helps.

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

  • I put my speakers or a microphone to go into the sound is terrible, and he put me on a blue screen that says crash dump HELP

    I went to control its embedded on my micro hit some button that met my speakers or my microphone, now there is a terrible noise of comign out of my speakers and my computer went to a blue screen that says something about a crash dump it please help I just reset my volume control , so they will come back the way they came when I bought it.

    Hello

    1. what operating system is installed on your computer?
    2. you remember to make changes to your computer before the problem?

    I suggest that you follow these steps and check to see if they help.

    Step 1:

    Restart your computer and Open the troubleshooter of Audio playback and check if this solves the problem.

    Step 2:

    You may also Update your audio drivers and see if that solves the problem.

    Step 3:

    If the computer goes into BSOD again, please follow the steps in this article.

    Resolve stop (blue screen) error in Windows 7

  • New hard drive mounted, didn't save lost all devices sony and Microsoft word. Still have the product that was supplied with the laptop key. Can I get this without having to buy new?

    VAIO laptop

    New hard drive mounted, didn't save lost all devices sony and Microsoft word. Still have the product that was supplied with the laptop key. Can I get this without having to buy new?

    To restore the software preinstalled on the computer, or to install disks:

    Contact the OEM computer manufacturer and ask them to send you an installation to your computer disk - they may charge a small fee. Contact information for the manufacturer of your computer can be found here:

    http://support.Microsoft.com/GP/oemphone/

    Sony support:
    http://eSupport.Sony.com/

  • Disable the pop up "you have new applications that can open this type of file.

    Disable the pop up "you have new applications that can open this type of file.

    And HOW do I GET THE BUTTON SUBMIT ON THIS ISSUE at WORK?

    Hello
    The notification will automatically turn off once you open this type of a file several times.
    In addition, if you enable notifications, you can go to:
    Charms bar > settings > Notifications > turn off notifications for... hours.

  • I have windows xp professional and I have a popup that says firewall protection is disabled, but when I click on it it shows that its turned on

    I have windows xp professional and I have a popup that says firewall protection is disabled, but when I click on it it shows that its turned on

    Hello


    1. were there any changes (hardware or software) to the computer before the show?
    2. is this a popup to third party software?

    Use the Microsoft Safety Scanner in full scan mode and remove all threats that is not detected by it and see if the problem persists.
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.
    The Microsoft Safety Scanner is not a replacement for the use of antivirus software that offers continuous protection.

    Hope this information helps.
  • How you can know if you want to compare materials is the problem between the processor and the memory when you have black screen!

    Hello

    If you have a black screen which can be if the processor is dead or memory is dead how you know if you do not reserve memory, the problem is the processor or memory?

    I tried this on my computer, I put on the CPU and I got black screen, I put in memory and I got black screen.

    Thank you

    Johan

    Thank you

    so in this case, how you can know if it is the processor or memory is the problem.

    you have to always have book of memory by you to resolve these issues (to make sure if the memory is problem) what memory or processor its work not at all.

    or it is too nested ways!

    Johan

    From what you described, it is possible that the processor, the RAM and the motherboard are all damaged. Or also the cold of power supply the problem (which could be checked for appropriate using a voltmeter). If you do not reply the existing motherboard then without spare parts (RAM, processor and motherboard) to use in tests, there is nothing more you can do with it to test these components.

  • Is it possible to download and install a suite you have already logged on to another computer?

    I have the disc but I don't have a hard drive on my new computer. I do not wish to put an end to my office on my laptop, but I want to use the same suite on my desktop as well.

    Julian,

    Yes, you can install and activate the perpetual software (purchased) two computers of the same type (mac or pc), as long as you use it on one at a time. (lightroom is the exception because it is a product of multi platform, so it can be installed on the pc and mac platforms)

    It is advisable to disable the software on a computer on which it will be is most used, especially before giving away or selling the computer or reformat the hard disk. Please see this link: How to disable the software.  This frees an activation if you have the option to install the software on another computer at any time.

    Please click on this link to download the appropriate version:

    Suites and programs CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 , CS4 Web Standard | CS3 | CS2

    Guinot

  • You have to put that feed into the PODCASTING app on your iOS device.

    I subscribe to premium podcast here

    and the title of this thread, that's what they told me to do to get this on my iphone and I don't have any idea what this means

    https://randirhodes.com/how-to-get-the-podcast/

    What app on your phone, you chose to listen to this podcast with?

    If this is the app of Podcasts native iOS, open the app, press the small + icon at the top left, tap ADD PODCAST.

    Enter the URL that have a link gives you, which is https://randirhodes.com/feed/premium

    You should see this sign in page, which, I assume that you have the information for.

  • My iphone is no longer on my mac when I connect ny pluging it appears on my imac, and open itunes. I get a message that says I need to upgrade to the latest version of itunes. I have the latest version on my computer. Help

    When I open itunes, I can no longer be sunch my iPhone. I get a message that says that I need to update to the latest version of itunes. But I have the latest version of itunes on my imac.

    My mac running OS x 10.6.8

    My version of itunes is 11.4

    My iphone is running OS 9.3.2


    If I uninstall itunes and reinstall I lose all my data, applications, contacts, photos and songs?

    You need Cougar 10.8.5 or later version to run the latest version of iTunes which is 12.4.0.119

    That the iPhone will need iTunes 12.3.3 or higher

    You can download Mountain Lion here

    http://store.Apple.com/us/product/D6377Z/A/OS-x-mountain-lion

    Or you can update to El Capitan if your Mac is capable

    Support Apple OS X El Capitan - technical data -

    You did not provide the specs on Mac-

    See also this thread

    Re: How to restore iPad again when the message says need new itunes version

  • you have a program that can release bad web pages?

    I ask this cause I have to redo my pc so many times his madden. I'm looking for something, and that is to say.  hair cuts and I opened these web pages not knowing who has a bad virus attached to it.  is their a program on their i can download this will of publications with an icon or even say dangerous web page... I had one before, a long time ago but he lost.  Please help... now im scared to open web pages fear of a virus attached to it and yes I have anti-virus programs IE.  MICROSOFT SECURITY ESSTIALS, CCLEANER, McFEE and so on... which doesn't help me when I open a web page... PLEASE PLEASE PLEASE HELP...

    If you have anti-virus and does not detect nothing then update and run full scan of the system and detects if still nothing then contact support.

    Yes, in Internet Explorer there is technology called Filter SmartScreen (IE8 and later). You can activate it open Internet Explorer and go to tools/security and smartscreen filter and turn it on.

    It will detect so bad Web site that contain viruses.

  • My system crashed and now I just get the blue screen that says to reinstall windows, when I try to use my recovery disks that it won't work.

    Is there anywhere to get a new copy of the system recovery disc for my windows vista computer.  I have a HP Pavillion and I get not anywhere when trying to start repair, it tries to fix my computer and takes forever... and then I get the blue screen saying I need to reload windows.  The recovery discs that I burned when I bought the computer do not work.  What are my options?

    How to reinstall Vista

    Contact the manufacturer of the laptop computer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

    With HP normally press you F11 at startup to start the process of recovery from the recovery partition

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

    If the problem persists with the recovery process, contact HP

    http://welcome.HP.com/country/us/en/contact_us.html

    or try HP support froums

    http://h30434.www3.HP.com/

Maybe you are looking for