472,353 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Hierarchy without "connect by prior"

3
Hi,

How can I run a query to fetch the hierarchy without using the command - connect by prior?
I want to use this query by BO, which does not support the connect byqstart with option.
thanks
Aug 6 '07 #1
4 4312
debasisdas
8,127 Expert 4TB
U can get the same out put by using JOIN ,but it will be slower in comparision to CONNECT BY PRIOR.
Aug 6 '07 #2
Adisc
3
U can get the same out put by using JOIN ,but it will be slower in comparision to CONNECT BY PRIOR.
for using join - I should know how many levels I have.
for example -
if my table holds:
son parent level
35 0 0
36 35 1
37 35 1
40 36 2
43 40 3
44 40 3
48 43 4

I would like to get 0, 35, 36, 40, 43, 48
Aug 6 '07 #3
debasisdas
8,127 Expert 4TB
You need to write self join for the purpose.
Aug 6 '07 #4
Adisc
3
can you please give me more details

thanks
Aug 6 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Manjesh Gowda | last post by:
Hi all, I am maintaing a persistent HTTP connection using the "HTTP CONNECT" method , this works fine for many proxies like Squid, ISA , etc. But...
12
by: Mikito Harakiri | last post by:
I wonder if WITH RECURSIVE MaryAncestor(anc,desc) AS ( (SELECT parent as anc, child as desc FROM ParentOf WHERE desc = "Mary") UNION (SELECT...
2
by: Hunter | last post by:
when I firstly ran "connect to dbname" command after "db2start", it spent me about 10 mins. I saw a process named "db2sync" that used 700M memory. ...
2
by: Prakash Wadhwani | last post by:
I have a database called "TEMP" On Opening the "TEMP" Database, I need to use VBA : a) to connect to another database called "PMF" b) the PMF...
1
by: DellaCroce | last post by:
I am trying, for the first time, to set up a small development system at home. I have two computer C1 and C2. C2 has SQL Server 2000 and IIS...
0
by: chico_001 | last post by:
I am doing some database testing and when I found a problem with the case sensitivity of "CONNECT TO". When "CONNECT to" is written with capital and...
1
by: delset | last post by:
This is my first post on this form so please bear with me if i don't give all the needed info. My problem seems simple but i googled for hours and...
3
by: cberthu | last post by:
Hi all, Is it possible to have two connects in the same rexx script to different DB's? I have to get data form on DB (with specifics selects and...
12
by: Jonathan Wood | last post by:
Greetings, I wonder if anyone can help me with this. I have an XP laptop, and a Vista desktop computer. I use the laptop to run software...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.