borsha06

DB-1.2Assignment

May 4th, 2021
628
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT D.NAME AS DEPARTMENT, COUNT(P.EMAIL_ADDRESS)
  2. FROM EMAIL.EMAILS AS E
  3. INNER JOIN EMAIL.PERSON AS P
  4. ON E.MESSAGE_FROM = P.EMAIL_ADDRESS
  5. INNER JOIN EMAIL.DEPARTMENT AS D
  6. ON P.WORKS_IN = D.ID
  7. GROUP BY(D.NAME)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×