Está en la página 1de 1

delete from tblarchivoslote where codigoLote='SC0000006'

update tbllotes set fechaInicioP=NULL where codigoLote='SC0000006'


select codigoLote,rutaDestino,nDocumentos from tblLotes where estado='C' Order B
y codigoLote Asc Limit 1
update tblarchivoslote set estado='A';
update tbllotes set estado='C',Servicio=NULL,fechaInicioP=NULL,fechaFinP=NULL;
delete from tblarchivosprocesados;
select codigoLote,rutaDestino,nDocumentos from tblLotes where estado='P' and ser
vicio='ProcessingService1' Order By codigoLote Asc Limit 1
select * from tblarchivosprocesados where codigoLote='SC0000004' and codigoArchi
vo=168
update tblarchivoslote set estado='A' where codigoLote='SC0000001' and estado='P
'
select codigoArchivo,rutaArchivo,nombreArchivo from tblarchivoslote where codigo
Lote='SC0000001' and estado='A' order by codigoArchivo
select * from tblarchivosprocesados where codigoLote='SC0000004' and codigoArchi
vo in (select codigoArchivo from tblarchivoslote where estado='P')
select * from tblarchivoslote where estado='P'
select nombreFolder from tblLotes group by nombreFolder
select ap.codigoLote from tblarchivosprocesados ap inner join tblLotes l on l.co
digoLote=ap.codigoLote where estadoV<>'VA' and estadoV='NE' and l.nombreFolder='
Imagenes de Prueba'
GROUP by codigoLote
select l.codigoLote,l.nombreFolder,l.fechaCierre,TIMEDIFF(l.fechaCierre,l.fechaA
pertura) as tiempoCargue,l.servicio,l.fechaFinP,TIMEDIFF(l.fechaFinP,l.fechaInic
ioP) as tiempoProcesamiento,nDocumentos from tbllotes l
select l.codigoLote,l.nombreFolder,(TIMEDIFF(l.fechaApertura,l.fechaCierre)) as
tiempoCargue from tbllotes l

También podría gustarte