Viewing 3 posts - 1 through 3 (of 3 total)
Create TABLE mapping(Code VARCHAR(10), Parent_code VARCHAR(10), POSITION VARCHAR(10));
INSERT INTO Mappings
VALUES ('H1', NULL, 'Root'),
...
July 6, 2011 at 6:06 pm
#1349377
thx WayneS.
I m using almost same query. But my main problem is as below
If i do
Select * from table
where parent_code= 'H1' * H1 is root
The output...
July 6, 2011 at 3:33 pm
#1349332
I have used CtE but it did not work
July 6, 2011 at 7:33 am
#1348951