From: | "VivekanandaSwamy R(dot)" <VivekanandaSwamyr(at)infics(dot)com> |
---|---|
To: | <pgadmin-support(at)postgresql(dot)org> |
Cc: | <pgadmin-support(at)postgresql(dot)org> |
Subject: | How to find out hierchy of employee? |
Date: | 2006-06-22 09:06:34 |
Message-ID: | A70AE049E81A6A40879D5DC0AC8C38C906820618@venus.infics.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hai,
I have proper knowledge in Oracle 9i as wel as PostgreSQL.
I have written a query in Oracle-SQL like the following...
select level,substr(lpad(' ',level*2)||ename,1,20) name from emp
start with ename='KING'
connect by prior empno=MGR;
/
LEVEL NAME
---------- -----------
1 KING
2 JONES
3 SCOTT
4 ADAMS
3 FORD
4 SMITH
2 BLAKE
3 ALLEN
3 WARD
3 MARTIN
Now, i need same result in PostgreSQL.Is there any possiblity to find
out the heirchy of employees?
Thanks & Regards
Vivekananda.R | Software Engineer
Infinite Computer Solutions | Exciting Times...Infinite Possibilities...
SEI-CMMI level 5 | ISO 9001:2000
Tel +91-80-5193-0000| Fax +91-80-51930009 | Cell No
+91-9986463365|www.infics.com
Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info(dot)in(at)infics(dot)com and delete this email from your records.
From | Date | Subject | |
---|---|---|---|
Next Message | Derrick Betts | 2006-06-22 13:08:59 | Re: How to find out hierchy of employee? |
Previous Message | VivekanandaSwamy R. | 2006-06-21 12:25:44 | Convert excel data from pgsql data |