I have table X and field EndTime(DateTime) and Status(int) Status has 2 condition. 1 for booked and 0 for available
I want to Auto update Status value from 1 to 0 when EndTime(DateTime) is equal to Current Time.
How I make it ?
Note : it's like for registration of people who are in the building, and from what time and to what time they are leaving. when time is over Status(int) will change from 1 to 0 automatically.