Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- fatura.num_cli "Cliente", -- Código do cliente
- fatura.num_doc "Número do documento", -- Número da NF
- fatura.dta_venc "Vencimento", -- Data de vencimento
- cliente.cod_situ "Situação" -- Situação do cliente, está em outra tabela
- FROM fatura
- LEFT OUTER JOIN cliente ON fatura.num_cli = cliente.cod_cliente
- WHERE fatura.cod_situ_com = 'AB' -- Situação da fatura - aberto
- 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