I have a table named AccessRight with this sample data:
ID Accessfor AccessOn
---------------------------
1 40 51
2 40 52
3 40 53
4 43 51
4 43 54
5 43 55
I want to insert/delete records of accessfor=40 and insert this table as a accessfor=43 means table will have records like below
1 43 51
2 43 52
3 43 53
4 43 54
5 43 55
Please suggest best optimum approach to solved this.