In my project I have one task related to the SQL server database.
Employee
======================
id Name Active
1 a 0
2 b 0
3 c 1
4 d 1
Here is my table in a grid format and when the admin click on the status update button I want to update the status in one GO. For example here, Id 1 and 2 have 0, and Id 3 and 4 have 1. So, when the admin clicks on the button I want to update the field and make something like this as shown below.
Employee
======================
id Name Active
1 a 1
2 b 1
3 c 0
4 d 0
Now Id 1 and 2 becomes 1 and Id 3 and 4 become 0. Please suggest. How to update the field.