I have a table like shown below
| Id | Name |
| 1 | Aarti |
| 2 | Kriti |
| 3 | Priya |
if Kriti (2) got deleted then all her reputation earned is given to Priya (3) and all the rows below are promoted that is the table now becomes like
| Id | Name |
| 1 | Aarti |
| 2 | Priya |
| 3 | Rashmi |
| 4 | Nancy |
How to achieve the same in SQL server?

Sachin SinghRank #66 · 26.2K reputationPosted Oct 17, 2020, 7:51 PM EDT
Aarti GuptaRank #5,944 · 281 reputationPosted Oct 18, 2020, 8:18 AM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Oct 18, 2020, 8:27 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 18, 2020, 8:29 AM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Oct 18, 2020, 8:26 AM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Oct 18, 2020, 8:05 AM EDT