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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -