H
Hugh self taught
Hi Learned people,
I have the following 2 SQL codes
SELECT Couples_2009.CoupleID, Couples_2009.CoupleNumber,
Couples_2009.MaleID, Couples_2009.FemaleID, Couples_2009.PermNumberCollect
FROM Couples_2009 LEFT JOIN Couples ON Couples_2009.[MaleID] =
Couples.[MaleID]
WHERE (((Couples.MaleID) Is Null));
For a result of unmatched records &
SELECT Couples.CoupleID, Couples.CoupleNumber, [Male].[Surname]+'
'+[Male].[First_Name] AS Male, [Female].[Surname]+' '+[Female].[First_Name]
AS Female
FROM Competitors AS Male INNER JOIN (Couples INNER JOIN Competitors AS
Female ON Couples.FemaleID = Female.Competitor_Idx) ON Male.Competitor_Idx =
Couples.MaleID
ORDER BY Val(Couples.CoupleNumber), [Male].[Surname]+' '+[Male].[First_Name];
I need to combine these so that my "unmatched records" query gives me the
names instead of the FK/PK reference.
I can read & understand each of them but can't put them together.
Many thanks for any help.
H
I have the following 2 SQL codes
SELECT Couples_2009.CoupleID, Couples_2009.CoupleNumber,
Couples_2009.MaleID, Couples_2009.FemaleID, Couples_2009.PermNumberCollect
FROM Couples_2009 LEFT JOIN Couples ON Couples_2009.[MaleID] =
Couples.[MaleID]
WHERE (((Couples.MaleID) Is Null));
For a result of unmatched records &
SELECT Couples.CoupleID, Couples.CoupleNumber, [Male].[Surname]+'
'+[Male].[First_Name] AS Male, [Female].[Surname]+' '+[Female].[First_Name]
AS Female
FROM Competitors AS Male INNER JOIN (Couples INNER JOIN Competitors AS
Female ON Couples.FemaleID = Female.Competitor_Idx) ON Male.Competitor_Idx =
Couples.MaleID
ORDER BY Val(Couples.CoupleNumber), [Male].[Surname]+' '+[Male].[First_Name];
I need to combine these so that my "unmatched records" query gives me the
names instead of the FK/PK reference.
I can read & understand each of them but can't put them together.
Many thanks for any help.
H