Advertisement
gkpoll

Untitled

Jul 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.33 KB | None | 0 0
  1. SELECT c.efd_cod_cnpj "CNPJ_Declarante", c.efd_dt_refer "PA", re110.*
  2. FROM usr_sat_sped.efd_controle c
  3. join usr_sat_sped.efd_re110_apuracao_icms re110
  4. ON c.efd_nro_arquivo=re110.id_arquivo
  5. WHERE NVL(c.efd_sit_substituto_novo,0) = 1 --Situacao do aquivo quando a substituicao: 1- Ativo, 2- Substituido.
  6. AND c.efd_dt_refer = 201901;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement