title: SQL EXCLUDE records with timestamps defined in the separate table
body: <p>I need to write SQL that EXCLUDES records with date in a certain date range. The range is defined by another table.</p>
  
  <p>First TABLE1 looks like this:</p>
  
  <p>DATE        VALUE</p>
  
  <pre><code>'1-jan-15 00:00'., 123
  '1-jan-15 00:01'., 999
  ................., ...
  '15-jan-15 16:42', ...
  </code></pre>
  
  <p>Second TABLE2 looks like this:</p>
  
  <pre><code>START_DATE        END_DATE
  '4-jan-15 12:05', '4-jan-15 12:17' 
  '7-jan-15 12:15', '4-jan-15 14:10' 
  etc
  </code></pre>
  
  <p>I need all the values from TABLE1 except the ones with the timestamp between TABLE2.START_DATE and TABLE2.END_DATE </p>