Ver Mensaje Individual
  #6  
Antiguo 12-01-2013
novato_erick novato_erick is offline
Miembro
 
Registrado: ago 2010
Ubicación: Panamá
Posts: 396
Reputación: 14
novato_erick Va por buen camino
Resolvi el asunto que me devuelve 0 con esta modificacion:

Código SQL [-]
 select cast((EXTRACT(MINUTE from(m.HORA)))*100 as integer)/60 from TEMPLEADOS e, TMARCACIONES m where e.ID_EMPLEADOS = m.ID_EMPLEADOS

sin embargo me devuelve siempre enteros por ejemplo:

Cita:
8:54:27 hora 1 Entrada

8(0.54/60)*100 =0.90 sin embargo en el sql me da 90 necesitando 0.90

resultado 8.90


12:27:49 hora 2 Salida

12(0.27/60)*100=0.45 igual manera me da 45 necesitando 0.45

Resultado 12.45

12.45 - 8.90 = 3.55 horas

Saludos
Responder Con Cita