Baber Amin
asked on
Convert Oracle SQL with Connect by prior to SQL Server SQL
Hi,
Please convert below Oracle SQL with Connect by prior to SQL Server SQL
select count(*)
from tree
connect by prior
dataid = parentid
start with dataid=%1
Please convert below Oracle SQL with Connect by prior to SQL Server SQL
select count(*)
from tree
connect by prior
dataid = parentid
start with dataid=%1
ASKER
Confusing.
My table name is TREE.
My table name is TREE.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
its giving me zero result.
Hi,
Could you please few rows and the expected output ?
Could you please few rows and the expected output ?
Hi baberamin,
Any luck with this :) ?
Regards,
Pawan
Any luck with this :) ?
Regards,
Pawan
Try.. this for MS SQL Server.. Please let me know if any changes are required..
Open in new window
Hope it helps!!