Is it possible to divide two columns using the the query builder? Is it possible to divide two columns using the the query builder?

Like: $query -&gt; fields('A', array('valsA') / 'B', array('valsB'));
For complex expressions you can use the addExpression() method, e.g.

$query-&gt;addExpression('A.valsA / B.valsB', 'alias');