Updating the status after 30 min automatically by using database calls
I have Master table with two coloumns (ID , Active) values like (val1 , 0(Active)) (1 not active)
Another table Transaction with three fields (ID , Locked Time , Unlocked Time) values like (val1,11:00 AM,11:30 AM).
If the user wrongly enter password or user name three times user activation status is updated to not active.that time is stored in Locked time.
I want after 30 min the user will be unlocked and the status will change to active(0).
We have bulk users like that for monthly 400 users deactivated every time i am unlocking manually.
I want solution as database wise not application...like after 30 min one trigger will update that or any stored procedure queries.
Please heip me...thank you in advance.