Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE OR REPLACE VIEW cboxv_acordogerado_auto AS
- SELECT e.nomereduzido Empresa , cc.nroacordo , cc.seqfornecedor||' - '||g.nomerazao fornecedor, x.apelido comprador FROM msu_acordopromoc cc,ge_pessoa g, max_empresa e, max_comprador x
- WHERE cc.nroempresa = e.nroempresa
- AND cc.seqcomprador = x.seqcomprador
- AND cc.seqfornecedor = g.seqpessoa
- AND cc.dtaemissao = trunc(sysdate)
- AND cc.situacaoacordo = 'F'
- AND cc.usuinclusao = 'Automatico'
- ORDER BY cc.seqcomprador, cc.nroempresa;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement