L
Laurel
I want to select all of the rows in tblRLC for which Directory_HHD_Key =
True, and I want to join to them, the rows in RLC where Directory_Spouse =
True and Directory_HHD_Key is the same in both tables. (I diagram of what I
want is below). I choose the second of the 3 join types, "All records in
tblRLC and only those records in tblSpouse where the joined fields are
equal." The SQL version is below. My probem is that NO rows are returned
using this syntax. I've tried starting from scratch, and I've tried using
the default aliases (tblRLC and tblRLC_1). What am I not seeing here?
SELECT tblRLC.*, tblSpouse.*, tblRLC.Directory_HHD_Record,
tblSpouse.Directory_Spouse
FROM tblRLC LEFT JOIN tblRLC AS tblSpouse ON tblRLC.Directory_HHD_Key =
tblSpouse.Directory_HHD_Key
WHERE (((tblRLC.Directory_HHD_Record)=True) AND
((tblSpouse.Directory_Spouse)=True));
True, and I want to join to them, the rows in RLC where Directory_Spouse =
True and Directory_HHD_Key is the same in both tables. (I diagram of what I
want is below). I choose the second of the 3 join types, "All records in
tblRLC and only those records in tblSpouse where the joined fields are
equal." The SQL version is below. My probem is that NO rows are returned
using this syntax. I've tried starting from scratch, and I've tried using
the default aliases (tblRLC and tblRLC_1). What am I not seeing here?
SELECT tblRLC.*, tblSpouse.*, tblRLC.Directory_HHD_Record,
tblSpouse.Directory_Spouse
FROM tblRLC LEFT JOIN tblRLC AS tblSpouse ON tblRLC.Directory_HHD_Key =
tblSpouse.Directory_HHD_Key
WHERE (((tblRLC.Directory_HHD_Record)=True) AND
((tblSpouse.Directory_Spouse)=True));