Hello All,
I have a following table:
Name New Version
P001 New P001 V1
P001 V1 P001 V2
P001 V2 P001 V3
P001 V3 P001 V4
P001 V4
B001 New
If the new name is added to the table then I should be able to add the new Name (B001 New)
If the new version to the name is added then update the existing version to the new version (P001 V3 -> P001 V4)
For update the conditions would be the New Version col is NULL and the content of Name col does not exists in the system. And it should match to the previous row's New version col. Then again the Name of that row shoudl match to the previous New Version.
I should be able to check this till it reaches the first row.
Can anyone tell me how check the value from latest record to the first record.
I would appreciate any suggestions.
Thanks in advance,
-techiPA
I have a following table:
Name New Version
P001 New P001 V1
P001 V1 P001 V2
P001 V2 P001 V3
P001 V3 P001 V4
P001 V4
B001 New
If the new name is added to the table then I should be able to add the new Name (B001 New)
If the new version to the name is added then update the existing version to the new version (P001 V3 -> P001 V4)
For update the conditions would be the New Version col is NULL and the content of Name col does not exists in the system. And it should match to the previous row's New version col. Then again the Name of that row shoudl match to the previous New Version.
I should be able to check this till it reaches the first row.
Can anyone tell me how check the value from latest record to the first record.
I would appreciate any suggestions.
Thanks in advance,
-techiPA