It I have 2 tables which model a one to many relationship.
table bag ( id , status )
table item( id , bag_id , status )
I want a query that will see if all the status for the item table are all '1' and update bag status to '1', they have to be all '1' though.
Is there some way to do this?
Thanks
table bag ( id , status )
table item( id , bag_id , status )
I want a query that will see if all the status for the item table are all '1' and update bag status to '1', they have to be all '1' though.
Is there some way to do this?
Thanks

Comment