title: store value in variable in Redshift
body: <p>I am trying to store two variables in tw variables.</p>
  
  <p>for example:</p>
  
  <pre><code>var1=$(select max(columnA) from table)
  var2=$(select min(columnA) from table)
  </code></pre>
  
  <p>Can i combine the above statement and execute the same once and store max value in var1 and min value in var2 ?</p>
  
  <p>I am using Redshift DB.</p>