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.
| Author |
Topic |
|
takbar
Starting Member
2 Posts |
Posted - 2005-03-10 : 16:20:09
|
| Hi All,Can somebody help me in building a stored procedure or a query which returns me a parent id for the following table:Table2: proc_attach_xrefparent_id child_id39402 39403 39403 39407 39407 3941039410 3941339411 3945039450 3945239450 39455Here the idea is when i pass the child_id=39413 it should return me 39402 which is its parent_id. Similarlly if i pass input as 39455 it should return me 39411. I am using SYBASE database.Thanks in advance. Please let me know if you need any further clarrifications, Regards |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
takbar
Starting Member
2 Posts |
Posted - 2005-03-10 : 17:06:03
|
| This links donot help me, anyways I am looking for the query if somebody can help me out.Thanks, |
 |
|
|
|
|
|