Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Advanced Find query problem

$
0
0

Hi,

I have two campaigns, campaign A and campaign B

I'm trying to create a query that will give me accounts that are in campaign B, but not in campaign A.

If this was done in SQL, it would be something like this:

SELECT
a.accountid
FROM campaigns a
WHERE a.campaignname = "campaign A"
AND a.accountid NOT IN
(SELECT accountid FROM campaigns WHERE a.campaignname = "campaign B")


You can't do sub selects (IN or NOT IN) in CRM, so is there another way?



Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images