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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -