I am trying to divide two select queries using sql, not sure if this is possible or not
<p>Below is my query, I think in principle it should work, but am not sure if it is indeed possible or I am thinking too outside the box for this one.</p>

<pre><code>SELECT 
  (SELECT `orders`.`Status`, COUNT(*) AS COUNT_2 FROM `orders` `sw_orders` WHERE STATUS = 'booking' AND Date(OrderDate) &lt;= CURDATE() AND Date(OrderDate) &gt; DATE_SUB(CURDATE(),INTERVAL 30 DAY)) / 
  (SELECT `orders`.`Status`, COUNT(*) AS COUNT_2 FROM `orders` `sw_orders` WHERE STATUS = 'quote' AND Date(OrderDate) &lt;= CURDATE() AND Date(OrderDate) &gt; DATE_SUB(CURDATE(),INTERVAL 30 DAY))
AS result
</code></pre>

<p>That should return the value of 2 results where bookings is divided by quotes</p>