Advertisement
geracino

conta fechamento dinheiro

Jul 8th, 2024
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.66 KB | Software | 0 0
  1.   SELECT  substr(g.nome,0,instr(g.nome,' ',1))||substr(g.nome,instr(g.nome,' ',-1)+1) OPERADOR
  2.           ,a.nropdv
  3.           ,0 SANGRIA_DINHEIRO
  4.           ,0 SANGRIA_MOEDA
  5.           ,b.valor PDV_DINHEIRO
  6.           ,a.dtamovimento
  7.   FROM consinco.fi_tsmovtooperador a
  8.       ,consinco.fi_tsmovtoopedetalhe b
  9.       ,consinco.ge_usuario           g
  10.   WHERE b.codoperador = a.codoperador
  11.   AND   b.nroempresa = a.nroempresa
  12.   AND   b.nropdv     = a.nropdv
  13.   AND   b.dtamovimento = a.dtamovimento
  14.   AND   g.sequsuario   = a.codoperador
  15.   AND   a.fechado = 'S'
  16.   AND   a.nroempresa =1
  17.   AND   a.dtamovimento = '01-jul-2024'
  18.   AND   b.tipo = 'DIN'
  19.   ORDER BY 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement