Viewing 15 posts - 1 through 15 (of 21 total)
i did some research and got the following quries
--bottom to top
;WITH
CTE_Search AS
(
SELECT
...
August 16, 2015 at 8:24 am
thanks lynn,
following is what i want..
2323 (2323 should have childs like 23231000,23232,23233000,232390 as its child))
23231000 ( should have nothing)
23232 (should have 232321,232329 as its child)
23233000(should have 23239010,23239020,23239030,23239040,23239090 as its child)
232390...
April 28, 2015 at 4:28 am
insert into test222 values (1, '11', 0, 'iam a boy')
insert into test222 values (2, '111', 1, 'boy')
insert into test222 values (3, '1111', 2, 'boo')
insert into test222 values (4, '11111', 2,...
April 16, 2015 at 11:50 pm
sorry for my mistake, let us consider this...
insert into test222 values (1, '11', 0, 'a')
insert into test222 values (2, '111', 1, 'ccc')
insert into test222 values (3, '1111', 2, 'c')
insert into...
April 16, 2015 at 7:31 am
WITH cteSubs AS (
SELECT sid, scode, ParentID, sname, 0 Level, CAST(N'/' + scode + N'/' AS NVarchar(MAX)) Path
...
April 16, 2015 at 6:59 am
thanks i did what you said,,, and following is what i am getting
21111ccc1/11/111/
311112c2/11/111/1111/
51111114c4/11/111/1111/11111/111111/
i just want ; my expected op is as follows..pls help me
21111ccc1/11/111/
51111114c4/11/111/1111/11111/111111/
April 16, 2015 at 6:48 am
thanks, but can you please correct my query ??? i have created my query as a stored procedure so if you could help me to correct it , it will...
April 16, 2015 at 6:30 am
yes it is consistent...
i tried substring its not giving the expected out in differnt columns..
November 28, 2014 at 9:10 am
YES, thats what i am going to dp...
November 10, 2014 at 10:55 am
ok thanks,
even if i retrieve single record also its taking around 8 seconds so that means something is going wrong with my query..
pls let me know what can i do...
November 10, 2014 at 9:52 am
no i dont know about the correct indexes , how can i find that out?
November 10, 2014 at 9:37 am
Viewing 15 posts - 1 through 15 (of 21 total)