title: simple sql query, combine results and divide
body: <p>I'm trying to get <strong>2 counts</strong> from <strong>2 tables</strong> and work out the percentage like for a MySQL db:</p>
  
  <ol>
  <li><p><code>select field_one,  count(*) as COUNT_ONE from table1 group by field_one;</code></p></li>
  <li><p><code>select other_field,count(*) as COUNT_TWO from table2 group by other_field;</code></p></li>
  </ol>
  
  <p>I want to combine the results and have <code>FINAL_COUNT=(COUNT_ONE/COUNT_TWO) * 100</code> for percentage&nbsp;?</p>