title: SQL - Insert if the number of rows is greater than
body: <p>I have created a SQL query that will return rows from an Oracle linked server. The query works fine and will return 40 rows, for example. I would like the results to only be inserted into a table if the number of rows returned is greater than 40.</p>
  
  <p>My thinking would then be that I could create a trigger to fire out an email to say the number has been breached.</p>