thisisboni
Programmer
There is a table with the following test data
Need to write the update the table which will rotate the Workers such that after the update statement the data will look as below
SQL:
PrimaryId EquipId Worker Queue
1 1 Worker1 1
3 1 Worker3 3
2 1 Worker2 4
4 1 Worker4 7
Need to write the update the table which will rotate the Workers such that after the update statement the data will look as below
SQL:
PrimaryId EquipId Worker Queue
1 1 Worker1 7
3 1 Worker3 1
2 1 Worker2 3
4 1 Worker4 4