Advertisement
geracino

Consulta pedidos Pendentes

Sep 12th, 2023
967
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.52 KB | Source Code | 0 0
  1. SELECT trunc(a.dtainclusao) datapedido,a.nropedvenda, a.nrorepresentante||'-'||r.apelido vendedora, a.nrocarga, a.seqpessoa||'-'||g.nomerazao cliente,a.VlrAtendido,a.codgeraloper,a.situacaoped
  2.   FROM madv_pedvenda a
  3.        ,mad_representante r
  4.        ,ge_pessoa         g                
  5. WHERE a.nrorepresentante = r.nrorepresentante
  6. AND   a.nroempresa = r.nroempresa
  7. AND   a.seqpessoa = g.seqpessoa
  8. AND   a.nroempresa = 920
  9. AND   a.codgeraloper IN ( 911)
  10. AND   a.situacaoped NOT IN ('C','F')
  11. ORDER BY 1,g.nomerazao
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement