Advertisement
Guest User

123

a guest
Nov 21st, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. select distinct AE."Email", APT."ProductTypeId", PT."Name"
  2. from "AgentEmails" as AE
  3. join "Agents" A on ae."AgentId" = A."AgentId"
  4. join "AgentProductTypes" APT on A."AgentId" = APT."AgentId"
  5. join "ProductTypes" PT on APT."ProductTypeId" = PT."EnumId"
  6. where APT."ProductTypeId" in (1, 4, 25)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement