borsha06

DB-Assignment

May 2nd, 2021
3,673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.17 KB | None | 0 0
  1. (
  2. SELECT E.WORKS_IN AS DEPARTMENT, COUNT(EMAIL_ADDRESS)
  3. FROM EMAIL.EMAILS AS E
  4. INNER JOIN EMAIL.PERSON AS P
  5. ON E.MESSAGE_FROM = P.EMAIL_ADDRESS
  6. GROUP BY(E.WORKS_IN)   
  7. )
  8.  
Advertisement
Add Comment
Please, Sign In to add comment