473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 4452
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 the iPlanet proxy disconnects the conneciton...
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 A1.anc, A2.desc FROM MaryAncestor A1, MaryAncestor...
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. The OS is Linux Advanced Server V2.1, Database...
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 database requires a password on opening called...
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 running on. C1 has VS.Net 2003 running on it. ...
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 small letters, a new db is not dropped 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 have not yet found anything that can help with my...
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 filter out some values with RExx) and save the...
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 remotely on the desktop using the Remote Desktop...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.