Guest User

Untitled

a guest
Sep 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. SELECT
  2. fatura.num_cli "Cliente", -- Código do cliente
  3. fatura.num_doc "Número do documento", -- Número da NF
  4. fatura.dta_venc "Vencimento", -- Data de vencimento
  5. cliente.cod_situ "Situação" -- Situação do cliente, está em outra tabela
  6. FROM fatura
  7. LEFT OUTER JOIN cliente ON fatura.num_cli = cliente.cod_cliente
  8. WHERE fatura.cod_situ_com = 'AB' -- Situação da fatura - aberto
  9. AND trunc(fatura.dta_venc) between '01-mai-2018' and '31-mai-2018' -- Período de vencimento
Add Comment
Please, Sign In to add comment