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.estatus,
- toi.fecha_alta, toi.fecha_autorizacion , toi.fecha_instruccion, toi.fecha_actualizacion,
- toi.usuario_autorizador,
- toi.usuario_instructor
- from
- temp_ordenes_importador toi
- JOIN transacciones_spei ts on toi.id_transaccion_spei = ts.id
- where
- -- toi.datos like "{""cuenta_origen"":1502%" and
- -- toi.folio_orden in (select folio from ordenes_importacion oi where oi.id_cuenta_ahorro = 1484) and
- toi.fecha_alta >= "2021-09-14" -- and toi.fecha_alta <= "2021-08-14"
- and estatus <> 1
- order by toi.id asc
Advertisement
Add Comment
Please, Sign In to add comment