Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. select * from orcam INNER JOIN ccusto as a ON orcam.Ccusto = a.Ccusto INNER JOIN grupo_email b on a.Ccusto
  2. COLLATE SQL_Latin1_General_CP1_CI_AS = b.cc INNER JOIN grupo_resp c ON b.resp = c.id where orcam.Ccusto=0151 and anomes=201709
  3.  
  4. Ccusto | Grupo | Anomes | Ccusto | cc | resp | id | email
  5. 0151 0452 201709 0151 0151 1 1 email01@mail.com
  6. 0151 0452 201709 0151 0151 1 2 email02@mail.com
  7.  
  8. Ccusto | Grupo | Anomes | Ccusto | cc | email
  9. 0151 0452 201709 0151 0151 email01@mail.com;email02@mail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement