glyph1
Programmer
- Jun 15, 2007
- 26
Database: MSDE SQL Server 2000
Table Contract
ContractID PK*
ContractNumber
Status
NextContractID FK*
I am looking to select [ContractNumber] based on an input parameter and return all (non-null) of the linked [ContractNumber]s based on the [NextContractID] / [ContractID] relationship. I am trying to establish this in a single sql query.
I could not figure out a way to do this, any help would be greatly appreciated!
Table Contract
ContractID PK*
ContractNumber
Status
NextContractID FK*
I am looking to select [ContractNumber] based on an input parameter and return all (non-null) of the linked [ContractNumber]s based on the [NextContractID] / [ContractID] relationship. I am trying to establish this in a single sql query.
I could not figure out a way to do this, any help would be greatly appreciated!