Skip to content

Commit

Permalink
Fixed billing contact query to be more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
nckroy committed Mar 15, 2018
1 parent 31c1d44 commit 546b37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incommon-exec-billing-contacts_sf.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ WHERE C.SERVICE__C LIKE '%InCommon%' AND C.STATUS__C = 'Current' AND C.ROLE__C L
LEFT JOIN
(SELECT A.NAME AS B_ACCT_NAME, C.FIRST_NAME__C AS BLG_FNAME, C.LAST_NAME__C AS BLG_LNAME, C.CONTACT_EMAIL__C AS BLG_MAIL
FROM SF_CONTACT_AFFILIATION__C C JOIN SF_ACCOUNT A ON C.ACCOUNT__C = A.ID
WHERE C.SERVICE__C LIKE '%InCommon%' AND C.STATUS__C = 'Current' AND C.ROLE__C LIKE '%Billing%') AS BI
WHERE C.SERVICE__C LIKE '%InCommon%' AND C.STATUS__C = 'Current' AND C.ROLE__C = 'Billing') AS BI
ON EX.E_ACCT_NAME = BI.B_ACCT_NAME
ORDER BY E_ACCT_NAME

0 comments on commit 546b37f

Please sign in to comment.