title: SQL Query output to a variable in Delphi?
body: <p>I Would like to know how Can I put the SQL Query result into a variable.</p>
  
  <p>I'm aware of this </p>
  
  <pre><code>integerVariable := UniQuery1.RecordCount;
  </code></pre>
  
  <p>but this? </p>
  
  <pre><code>integerVariable := SELECT COUNT(*) FROM Orders WHERE Amount='1000' 
  </code></pre>