Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select
- toi.id,
- toi.id_transaccion_ahorro_cliente,
- toi.id_transaccion_spei,
- toi.folio_orden,
- toi.datos,
- toi.detalle_error,
- ts.json_respuesta, --
- toi.fecha_autorizacion,
- ts.fecha_actualizacion as timestamp_confirmacion_proveedor,
- (ts.fecha_actualizacion - toi.fecha_autorizacion) as tiempo_total_transaccion,
- toi.estatus,
- toi.fecha_alta, toi.fecha_instruccion, toi.fecha_actualizacion,
- toi.usuario_autorizador,
- toi.usuario_instructor
- from
- temp_ordenes_importador toi
- left JOIN transacciones_spei ts on toi.id_transaccion_spei = ts.id
- where
- json_respuesta like "%AQPAY29020211005142904290255%" and
- toi.fecha_alta >= "2021-10-04"
- and usuario_autorizador <> 0 -- ya autorizadas
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement