G
Guest
I have two tables (DONORS & GIFTS). Both have a common field (DONORID). I
want to read each record in GIFTS and then get the associated data in DONORS
that matches the DONORID (ADDRESS, CITY, STATE, ZIP). I've tried different
queries, but each one returns no records. There is currently a relationship
between the tables using the DONORID field. The query I've tried is:
SELECT GIFTS.Donorid, GIFTS.donorname, DONORS.PRIADD1, DONORS.PRICITY,
DONORS.PRISTATE, DONORS.PRIPOSTAL
FROM GIFTS INNER JOIN DONORS ON GIFTS.Donorid = DONORS.DONORID
WHERE (GIFTS.Donorid)=(DONORS.donorid);
Can anyone tell me what I'm doing wrong and how to fix it? Thanks!
want to read each record in GIFTS and then get the associated data in DONORS
that matches the DONORID (ADDRESS, CITY, STATE, ZIP). I've tried different
queries, but each one returns no records. There is currently a relationship
between the tables using the DONORID field. The query I've tried is:
SELECT GIFTS.Donorid, GIFTS.donorname, DONORS.PRIADD1, DONORS.PRICITY,
DONORS.PRISTATE, DONORS.PRIPOSTAL
FROM GIFTS INNER JOIN DONORS ON GIFTS.Donorid = DONORS.DONORID
WHERE (GIFTS.Donorid)=(DONORS.donorid);
Can anyone tell me what I'm doing wrong and how to fix it? Thanks!