B
brents555 via AccessMonster.com
Hi, I'm new at this, so I'll try and explain what I'm trying to do here,
maybel I"m going down the wrong road. In my instance a member equals a
customer. Just so you know.
I built a query which is pulling member history data for members with bad
payment history. (A-Del-Members-List)
I built another query which pulls data from a table (MEMBERDETL), but I want
to exclude
members that exist on the query above. Basically, excluding the members with
any bad payment history.
What I've got right now, is the following:
SELECT DISTINCT CAV_MEMBERDETL.MBRNO, CAV_MEMBERDETL.MBRFEE, CAV_MEMBERDETL.
CONSDEP, CAV_MEMBERDETL.MBRSEP
FROM CAV_MEMBERDETL LEFT OUTER JOIN [A-Del-Members-List] ON CAV_MEMBERDETL.
MBRSEP = [A-Del-Members-List].MBRSEP
WHERE (((CAV_MEMBERDETL.MBRFEE)>0) AND ((CAV_MEMBERDETL.CONSDEP)>0));
To achieve this, I've attempted to run a LEFT OUTER JOIN, which I thought
would only retrieve the rows from the left table that do not meet the join
criteria after the ON keyword. At this point, I'm still getting rows back
that exist on the A-Del-Members-List query, which I do not want. Is this
method completely wrong? If so, is there a way to do this?
maybel I"m going down the wrong road. In my instance a member equals a
customer. Just so you know.
I built a query which is pulling member history data for members with bad
payment history. (A-Del-Members-List)
I built another query which pulls data from a table (MEMBERDETL), but I want
to exclude
members that exist on the query above. Basically, excluding the members with
any bad payment history.
What I've got right now, is the following:
SELECT DISTINCT CAV_MEMBERDETL.MBRNO, CAV_MEMBERDETL.MBRFEE, CAV_MEMBERDETL.
CONSDEP, CAV_MEMBERDETL.MBRSEP
FROM CAV_MEMBERDETL LEFT OUTER JOIN [A-Del-Members-List] ON CAV_MEMBERDETL.
MBRSEP = [A-Del-Members-List].MBRSEP
WHERE (((CAV_MEMBERDETL.MBRFEE)>0) AND ((CAV_MEMBERDETL.CONSDEP)>0));
To achieve this, I've attempted to run a LEFT OUTER JOIN, which I thought
would only retrieve the rows from the left table that do not meet the join
criteria after the ON keyword. At this point, I'm still getting rows back
that exist on the A-Del-Members-List query, which I do not want. Is this
method completely wrong? If so, is there a way to do this?