title: Usage of 2 cursors to create 2 tables in email
body: <p>I would like to ask you how to create an email with 2 tables in MS SQL 2014.</p>
  
  <p>Right now I do have email with created table that is sent to particular recipients and I want to add another table with text that is only sent to recipients that are affected. 
  currently I use cursor for the first table.</p>
  
  <p>i want to use second cursor for the other condition but I do not know how to combine them.
  st            N'' +</p>
  
  <pre><code>                select @count = count(*) from &lt;table&gt; with (nolock) where birthday = 'GIFT'
  
                  if (@count &gt; 0)
                  BEGIN
  </code></pre>
  
  <p>Currently I am using CURSOR, but i need to have 2 cursors and I dont know how to mix them into one email.</p>
  
  <p>First cursor I use for the first table and second I want to use for the second table in the same email.</p>
  
  <p>Thank you for your help. </p>