title: How to make a Trigger work like a Foreign Key?
body: <p>I need to make a Foreign Key using Triggers instead of just using an alter table like this:</p>
  
  <pre><code> alter table WORKER
        add constraint WORKER_idDepartment_FK
        foreign key (idDepartment)
        references DEPARTMENT (idDepartment);
  </code></pre>
  
  <p>Can someone please help me?</p>