title: Parent child relationship query in Oracle
body: <p>I have table like this</p>
  
  <p>Table- A</p>
  
  <pre><code>Conversion_logic       Output_param
  
  func(a,b)               c
  
  func(d)                 e
  
  func(c)                 d
  
  func(e)                 f
  </code></pre>
  
  <p>Here rows depicts that func(a,b) gives me "c", now this "c" is applied as func(c) and gives me "d", now this "d" is applied as func(d) and gives me "e" and now this "e" is applied as func(e) which gives me "f"</p>
  
  <p>So I want an output like this</p>
  
  <pre><code>1) That row should be the first row whose output has no dependency.
  2) From there it should follow parent child relation
  
  Conversion_logic       Output_param
  func(e)                f
  func(d)                e
  func(c)                d
  func(a,b)              c
  </code></pre>