Good morning, I have the doubt of how to make a relationship of two tables where: the column n_employed of the table entry_register can not be filled without that same data (number of identical worker) existing previously in the record table. that for security reasons since I'm creating a registration system in theory to register my workers, and when they check your entry and exit know that they are already registered and if not, send conditional in PHP