Completed

Mysql Query para sumar tiempo de duración de una variable en 1. (basada en registros que tienen variable timestamp) El objetivo es identificar un persona con disponibilidad para realizar programación en Mysql. para realizar otros queries con regularidad.

Published on the October 29, 2017 in IT & Programming

About this project

Open

Se requiere identificar el tiempo que permaneció el vehículo con la ignicion en on en un periodo de tiempo determinado.

Para ello cada registro en la tabla tiene timestamp con el formato https://www.epochconverter.com

Cada periodo de ignición va desde que la campo ign cambia de 0 a 1 y termina con el siguiente evento cronológico que tenga ign en 0.

El resultado se debe entregar en una tabla por IMEI (Carro) y por Driver(Conductor).
IMEI es el carro
driver es el conductor

La tabla ya tiene un indice  IMEI,timestamp.  En caso Contrario el resultado no ser'a valido.

Los timestamp esta en milisegundos y responde a este formato: https://www.epochconverter.com

Si lo quieres ver como fecha se debe usar el siguiente query:

select *,
CONVERT_TZ(FROM_UNIXTIME(timestamp / 1000),
            '+00:00',
            '-05:00') as date
from table

Los parametros de entrada son: Timestamp que identifica el inicio de periodo del reporte y Timestamp que identifica el final del periodo del reporte.

Category IT & Programming
Subcategory Other
Project size Small
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects No (I haven’t managed this kind of project before)

Delivery term: October 31, 2017

Skills needed