N
NeoFax
I have a query that I would like to see the column PlayDate, but it
only shows Winner and Loser. Here is the SQL:
SELECT tblScores2.fldDate AS PlayDate, tblScores2.fldPlayerName AS
Winner
FROM ([Teams in League] INNER JOIN Rosters ON [Teams in League].ID =
Rosters.TeamID) INNER JOIN tblScores2 ON Rosters.[Player Name] =
tblScores2.fldPlayerName
WHERE (((tblScores2.fldWinLose)=-1))
GROUP BY tblScores2.fldDate, tblScores2.fldPlayerName;
UNION SELECT tblScores2.fldDate AS PlayDate, tblScores2.fldPlayerName
AS Loser
FROM ([Teams in League] INNER JOIN Rosters ON [Teams in League].ID =
Rosters.TeamID) INNER JOIN tblScores2 ON Rosters.[Player Name] =
tblScores2.fldPlayerName
WHERE (((tblScores2.fldWinLose)=0))
GROUP BY tblScores2.fldDate, tblScores2.fldPlayerName;
only shows Winner and Loser. Here is the SQL:
SELECT tblScores2.fldDate AS PlayDate, tblScores2.fldPlayerName AS
Winner
FROM ([Teams in League] INNER JOIN Rosters ON [Teams in League].ID =
Rosters.TeamID) INNER JOIN tblScores2 ON Rosters.[Player Name] =
tblScores2.fldPlayerName
WHERE (((tblScores2.fldWinLose)=-1))
GROUP BY tblScores2.fldDate, tblScores2.fldPlayerName;
UNION SELECT tblScores2.fldDate AS PlayDate, tblScores2.fldPlayerName
AS Loser
FROM ([Teams in League] INNER JOIN Rosters ON [Teams in League].ID =
Rosters.TeamID) INNER JOIN tblScores2 ON Rosters.[Player Name] =
tblScores2.fldPlayerName
WHERE (((tblScores2.fldWinLose)=0))
GROUP BY tblScores2.fldDate, tblScores2.fldPlayerName;