title: Checking if the latest record is older than 1 hour
body: <p>I've recently made a small application, that sends an e-mail.
  I'm currently trying to have it send an e-mail whenever the latest record in an SSMS database, is older than 1 hour.</p>
  <p>I'm using a case statement in the SQL query, to try and have the query return 1 or 0.</p>
  <p>How would I make the SQL Query?</p>
  <p>I'd hoped for an input like:</p>
  <pre><code>CASE
      WHEN condition1 THEN result1
      ELSE result
  END;
  </code></pre>
  <p>Thank you in advance.</p>