My current table:
id | count | group_id
1 1 employee
2 2 employee
3 3 employee
4 4 employee
What I want:
id | count | group_id
1 4 employee
2 3 employee
3 2 employee
4 1 employee
What i've attempted
UPDATE table SET count = 4 WHERE count = 1 AND group_id='employee';
UPDATE table SET count = 3 WHERE count = 2 AND group_id='employee';
UPDATE table SET count = 2 WHERE count = 3 AND group_id='employee';
UPDATE table SET count = 1 WHERE count = 4 AND group_id='employee';
For obvious reason this does not work because it executes each query row by row, so my result is wrong. I think i'm looking for a way of updating multiple tables with one query?