Advertisement
Guest User

Untitled

a guest
Feb 13th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 1.48 KB | None | 0 0
  1. -------------------------------------------------
  2.  --3042 lineas/contrato distintas:
  3. SELECT COUNT(DISTINCT linea||contrato)
  4. FROM  comisv2.evt_etl_migraciones m WHERE m.idcabevento = 71919
  5.  --5073 lineas/contrato distintas:
  6. SELECT COUNT(DISTINCT linea||contrato)
  7. FROM  comisv2.EVT_ETL_MIGRACION_TOTAL
  8.  
  9. -------------------------------------------------
  10. --2.608 lineas/contrato distintas del TOTAL que corresponden a la V1:
  11. SELECT COUNT(DISTINCT e.linea||e.contrato)
  12. FROM comisv2.EVT_ETL_MIGRACION_TOTAL e
  13. JOIN comisv2.evt_etl_migraciones m ON m.idcabevento = 71919 AND m.linea = e.linea AND m.contrato = e.contrato AND m.producto = e.producto
  14. WHERE fecha_proceso >= TO_DATE ('02/11/2018 00:00:00', 'DD/MM/YYYY HH24:MI:SS')
  15. AND fecha_proceso < TO_DATE ('02/12/2018 00:00:00', 'DD/MM/YYYY HH24:MI:SS')
  16. AND e.num_cont_dest = m.num_cont_dest
  17. AND e.cod_tec_orig = m.cod_tec_orig
  18. AND e.cod_clco_dest = m.cod_clco_dest
  19. AND e.cod_tec_dest = m.cod_tec_dest
  20. AND e.cod_clco_ant = m.cod_clco_ant
  21. AND e.cod_plan_orig = m.cod_plan_orig
  22. AND e.penalizacion = m.penalizacion
  23. AND e.vendedor = m.vendedor
  24. --LISTA DE CAMPOS QUE NO MATCHEAN CON DATOS DE LA V1:
  25. --and e.zona = m.zona
  26. --and e.fec_fincont = m.fec_fincont
  27. --and e.cod_apro_act = m.cod_apro_act
  28. --and e.cod_grup_orig = m.cod_grup_orig
  29. --and e.usuario = m.usuario
  30. --and e.fec_apro_act = m.fec_apro_act
  31. --and e.cod_esta = m.cod_esta
  32. --and e.cod_apro = m.cod_apro
  33. --and e.num_cont_act = m.num_cont_act
  34. --and e.cod_grup_act = m.cod_grup_act
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement