If the active flag of the parent table shows 1, item will be displayed, if it shows 0 it won’t.
The parent active flag is set to 1 if at least 1 of the children’s active flag of the according group (parent_id) is 1 and it’s set to 0 if all children’s active flag shows 0.
any hints on how would the query look like to get the parent active flag updated according to the children active flags?
Whatever i tried so far failed…
Same requrements:
If the active flag of the parent table shows 1, item will be displayed, if it shows 0 it won’t.
The parent active flag is set to 1 if at least 1 of the children’s active flag of the according group (parent_id) is 1 and it’s set to 0 if all children’s active flag shows 0.