Data validation on a reference row

Hello, I have a timestamp app, where I have two tables:

  1. Is the employees table
  2. Timestamp

In the timestamp table I have a reference row to the employees table and I want a data validation that when someone hasnt clock out, I dont want their name to appear in the references row enum colum