Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. select a.numero_linea
  2. from numeros_portados_detalle_ptb a
  3. where a.id_asignatario_original = '555'
  4. and a.id_receptor = '555'
  5. and a.fecha_ventana_programada >= '2019-01-20 00:00:00.0'
  6. and a.fecha_ventana_programada < '2019-01-21 00:00:00.0';
  7.  
  8. select b.numero_linea from identificadores a, numeros_portados_ptb b, routing_numbers_ptb c
  9. where a.identificador = b.numero_linea
  10. and b.routing_number = c.routing_number
  11. and b.fecha_evento >= '2019-01-20 00:00:00.0'
  12. and b.fecha_evento < '2019-01-21 00:00:00.0'
  13. and c.owner = 'Personal'
  14. and a.codigo_estado_comercial != 'PORTA'
  15. order by a.identificador
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement