
Contador cada cierto tiempo.
Publicado por ktrask (6 intervenciones) el 24/05/2016 16:53:17
Hola Que tal, quiero que me ayuden en algo.
Tengo una tabla
tickets.
-------------------------
id (int)
Tipo_ticket (char 10)
Creacion_ticket (datatime)
start_Ticket (datatime)
End_ticket (datatime)
cuando se crea tickets.
id | Tipo_ticket | Creacion_ticket | start_Ticket | End_ticket
1 | PPP1 | 2016-05-24 19:02:12.140 | NULL | NULL
2 | PPP2 | 2016-05-24 19:09:00.140 | NULL | NULL
3 | PPP3 | 2016-05-24 19:15:30.140 | NULL | NULL
cuando PPP1 cumpla los 60 minutos, automáticamente en End_ticket se cree la hora actual del servidor, asi mismo para cuando PPP2 cumpla 60 minutos y PPP3., sin importar Start_Ticket.
id | Tipo_ticket | Creacion_ticket | start_Ticket | End_ticket
1 | PPP1 | 2016-05-24 19:02:12.140 | NULL | 2016-05-24 20:02:12.140
2 | PPP2 | 2016-05-24 19:09:00.140 | NULL | 2016-05-24 20:09:00.140
3 | PPP3 | 2016-05-24 19:15:30.140 | NULL | 2016-05-24 2015:30.140
Espero su repsuesta.
Tengo una tabla
tickets.
-------------------------
id (int)
Tipo_ticket (char 10)
Creacion_ticket (datatime)
start_Ticket (datatime)
End_ticket (datatime)
cuando se crea tickets.
id | Tipo_ticket | Creacion_ticket | start_Ticket | End_ticket
1 | PPP1 | 2016-05-24 19:02:12.140 | NULL | NULL
2 | PPP2 | 2016-05-24 19:09:00.140 | NULL | NULL
3 | PPP3 | 2016-05-24 19:15:30.140 | NULL | NULL
cuando PPP1 cumpla los 60 minutos, automáticamente en End_ticket se cree la hora actual del servidor, asi mismo para cuando PPP2 cumpla 60 minutos y PPP3., sin importar Start_Ticket.
id | Tipo_ticket | Creacion_ticket | start_Ticket | End_ticket
1 | PPP1 | 2016-05-24 19:02:12.140 | NULL | 2016-05-24 20:02:12.140
2 | PPP2 | 2016-05-24 19:09:00.140 | NULL | 2016-05-24 20:09:00.140
3 | PPP3 | 2016-05-24 19:15:30.140 | NULL | 2016-05-24 2015:30.140
Espero su repsuesta.
Valora esta pregunta


0