N
NeoFax
I am having problems getting the below SQL to work:
SELECT tblResults.Team, Count(tblResults.Loser) AS WinsAgainst,
tblResults.Team1
FROM tblResults INNER JOIN
(
SELECT Count(tblResults.Winner) AS CountOfWinner
FROM tblResults
WHERE (((tblResults.Team)="Dom's A")) OR (((tblResults.Team1)="Dom's
A"))
) AS XX
GROUP BY tblResults.Team, tblResults.Team1
HAVING (((tblResults.Team)="Dom's A"))
ON tblResults.Team = XX.Team;
I want to be able to ad up how many times a team played another team
and then use this result to calculate the percentage of wins against
the other team. Right now I am hard coding the team in, but once this
works I will use a form to allow it to be ran dynamically.
SELECT tblResults.Team, Count(tblResults.Loser) AS WinsAgainst,
tblResults.Team1
FROM tblResults INNER JOIN
(
SELECT Count(tblResults.Winner) AS CountOfWinner
FROM tblResults
WHERE (((tblResults.Team)="Dom's A")) OR (((tblResults.Team1)="Dom's
A"))
) AS XX
GROUP BY tblResults.Team, tblResults.Team1
HAVING (((tblResults.Team)="Dom's A"))
ON tblResults.Team = XX.Team;
I want to be able to ad up how many times a team played another team
and then use this result to calculate the percentage of wins against
the other team. Right now I am hard coding the team in, but once this
works I will use a form to allow it to be ran dynamically.