Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- paulogp
- -- localhost
- -- indicador Kaizen
- SELECT COUNT(*) AS VALOR_APURADO
- FROM q_documento_associacao_ag
- WHERE (assoc_type = '1030300')
- AND (assoc_date BETWEEN DATEADD(mm, DATEDIFF(mm, 0, GETDATE()) - 1, 0)
- AND DATEADD(mm, DATEDIFF(mm, 0, GETDATE()), 0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement