Código SQL:
Ver originalSELECT c1.totalvehi-c2.total
FROM
(
SELECT COUNT(id_vehiculo) AS TotalVehi
FROM vehiculos WHERE id_estado = 14
AND id_local = 2
) AS c1,
(
SELECT COUNT(tareas.id_tipo_tarea)AS Total
FROM vehiculos,tareas,tipos_tarea WHERE
Vehiculos.id_vehiculo = tareas.id_vehiculo AND
tareas.id_tipo_tarea = tipos_tarea.id_tipo_tarea
AND vehiculos.id_estado = 14 AND
tareas.finalizada = 0 AND vehiculos.id_local = 2
) AS c2;
así?
No lo he probado