title: Select DATEADD minutes with query SQL Server 2008
body: <p>How can I add minutes using <code>dateadd()</code> with a query result ?</p>
  
  <p>Like this:</p>
  
  <pre><code>SELECT dateadd(minute, (SELECT 
                  isnull(time1 - time2, 0)
                  FROM table 
                  WHERE field = 111) , getdate())
  </code></pre>
  
  <p>In this case, the select result is <code>288</code> but it don't add</p>
  
  <p>I need ADD this 288 in the function</p>
  
  <p>Like this:</p>
  
  <pre><code>SELECT dateadd(minute, 288, getdate())
  </code></pre>