Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Recurrsive

Author  Topic 

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2007-02-14 : 16:33:59
Hi I have a table Like

ID IsParent ParentID Title
1 1 0 Now is the time
2 1 0 Yesterday was good too
3 0 2 Tomorrow will work but it is late
4 0 1 Yes it is
5 0 3 Yesterday is history
5 0 1 Never never comes

I just want to displays the parent record and all child records for that parent. Parents are identified by the Boolean IsParent

Please any one can help me please
Thnaks
krishna

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2007-02-15 : 14:27:30
Hi all,
Please any one help me
Thanks
Krishna
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-02-15 : 14:41:51
It helps if you could provide the layout for the expected output, and the output itself.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -