Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Help using hierarchical query CONNECT BY clause

Re: Help using hierarchical query CONNECT BY clause

From: <mikharakiri_nospaum_at_yahoo.com>
Date: 1 Feb 2005 16:35:43 -0800
Message-ID: <1107304543.813204.246130@o13g2000cwo.googlegroups.com>


Hexathioorthooxalate wrote:
> What I want is SQL to retrieve the names of the people in the
organisation
> hierarchy that have as a job title "Sales Director" however their
boss must
> have a job title of "Vice President" and their boss must have the job
title
> of "President".

This is not hierarchical query. What you've said is

select ...
from employees grandchildren,
employees children,
employees parents
where grandchildren.foo = children.bar
and blah-blah-blah

> And I want these job titles to be configurable too, so that
> I can change them on-the-fly and perform different queries.
Bind variables? Received on Tue Feb 01 2005 - 18:35:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US