sql - MySQL constrain transaction for entity must finish before another can begin -
i have table guests, each guest unique name.
i have table guest_transactions guest_id, status_id, arrived_time, left_time.
and status table name column, populated values (here, leaving, left).
i want record guests come , go, i'd have constraint prevents guest arriving twice before leaving. there way this?
Comments
Post a Comment