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
 General SQL Server Forums
 New to SQL Server Programming
 Link to original PK

Author  Topic 

fnguyen7
Starting Member

2 Posts

Posted - 2010-07-19 : 14:11:51
Hi. I'm new to SQL and striving to be awesome with SQL so I can move up in the ranks so any help would be appreciated. :)

I have multiple ID's that link back to the previous ID but I need it to link back to the original ID.

Loan PrevLoan
1001 null
1002 1001
1003 null
1004 1002
1005 1004

Since there is really only two loans, I need it to show something like:

Loan OrigLoan
1001 1001
1002 1001
1003 1003
1004 1001
1005 1001

Any help would be greatly appreciated!

fnguyen7
Starting Member

2 Posts

Posted - 2010-07-19 : 15:44:16
Anyone?
Go to Top of Page
   

- Advertisement -