title: MySQL query calculated field
body: <p>I would like to do this query to include the null result in another calculated field.</p>
  <pre><code>SELECT ft.fecha_inicio, 
         ft.fecha_fin, 
         IF(ft.fecha_fin is NULL, now(), ft.fecha_fin) fin, 
         TIMEDIFF(fin,ft.fecha_inicio) total,
         IF (ISNULL(ft.fecha_fin), 1, 0) as encurso
  FROM fabricaciones_tiempos ft
  WHERE ft.id_fabricacion = 138;
  </code></pre>
  <p>is this possible?</p>
  <p><a href="https://i.stack.imgur.com/hh9YD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hh9YD.png" alt="enter image description here" /></a></p>