A triggered action on update of the 'members' table, checks the same table ('members') for records having :
- the same e-mail address
- the status 'active'
If any record with the same e-mail address 'AND' status='active' is found, nothing has to be done. If no records are found having both conditions true, the status in a second table 'Accounts' needs to be set to false.
In short: I want to disable the account when no more members with the same e-mail address are active.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Gilmay
This is what I try to accomplish.
A triggered action on update of the 'members' table, checks the same table ('members') for records having :
- the same e-mail address
- the status 'active'
If any record with the same e-mail address 'AND' status='active' is found, nothing has to be done. If no records are found having both conditions true, the status in a second table 'Accounts' needs to be set to false.
In short: I want to disable the account when no more members with the same e-mail address are active.
Thank you for any input.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.