title: How to write an update trigger on a foreign key table so that it also considers updates on primary key table?
body: <p>I have two tables as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/Nglkw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nglkw.png" alt="enter image description here"></a></p>
  
  <p>I need to write an update trigger on Cities table. It should insert a new entry in an Audit table in either of the following cases:</p>
  
  <p>1) Record in Cities table is updated</p>
  
  <p>2) Record in Countries table, corresponding to the foreign key CountryID in Cities table, is updated</p>
  
  <p>Please advise how to achieve this.</p>