Muchisimas gracias, las ideas proporcionadas por jachguate me han orientado bastante.
Aquí les envio la SQL final, tal como yo queria al QR. llegan los datos limpios, solo hay que imprimirlos.
SQL:
select MIN(fecha),MAX(fecha),
floor((MAX(fecha)-MIN(fecha))*24)||':'||
round((((MAX(fecha)-MIN(fecha))*24)-(floor((MAX(fecha)-MIN(fecha))*24)))*60,0) Tiempo
from tabla(s)
where condiciones
and mas condiciones
etc.
Repito las gracias y les envio un saludo.
|