I am trying to number each row (update the AmendmentNumber) in sequential order based off an ID (ContractID). Example below but also attached a screenshot.
I would like to Order By the Document Name as the Name has a combination of [Contract ID] & [DocumentID] in the beginning of the Name.
I would like to Order By the Document Name as the Name has a combination of [Contract ID] & [DocumentID] in the beginning of the Name.
ContractID | DocumentName | AmendmentNumber |
---|---|---|
1000 | 1000_100_ABC Company AMD 1-1-2001 | 1 |
1000 | 1000_525_ABC Company AMD 1-1-2005 | 2 |
1001 | 1001_105_Smith Inc AMD 4-5-2008 | 1 |
1002 | 1002_106_Tom's Auto AMD 2-3-2021 | 1 |
1002 | 1002_415_Tom's Auto AMD 2-3-2022 | 2 |
1002 | 1002_515_Tom's Auto AMD 6-3-2022 | 3 |
1003 | 1003_110_Apple Inc AMD 12-1-2012 | 1 |
1004 | 1004_125_XYZ Inc AMD 10-17-2014 | 1 |
1004 | 1004_485_XYZ Inc AMD 10-17-2021 | 2 |