P
pat67
Here is my dilemma:
I am running a pool league where points are awarded for wins and
losses. I have a table that looks like this:
Date Round Winner Team Points Loser Team1 Points1
8/9/09 1 Joe A 10 Mike
B 4
8/9/09 1 Bob A 10 Steve B
2
8/9/09 1 Jim A 10 Bill
B 5
8/9/09 2 Joe A 10 Steve
B 4
8/9/09 2 Bill B 10 Bob
A 6
8/9/09 2 Mike B 10 Jim
A 4
I have the following query to total the points for winners:
SELECT tblResults_Points.Date, tblResults_Points.Round,
tblResults_Points.Team, Sum(tblResults_Points.Points) AS WP
FROM tblResults_Points
GROUP BY tblResults_Points.Date, tblResults_Points.Round,
tblResults_Points.Team;
What I need to see is this:
Date Round Team WP
8/9/09 1 A 30
8/9/09 1 B 0
8/9/09 2 A 10
8/9/09 2 B 20
Problem is what I am seeing is this:
Date Round Team WP
8/9/09 2 A 10
8/9/09 2 B 20
because there is no B in the Team field for round 1, I am getting no
values. It is the same for the query I run for loser points with no A
in the Team1 field for round 1
Can anyone help?
I am running a pool league where points are awarded for wins and
losses. I have a table that looks like this:
Date Round Winner Team Points Loser Team1 Points1
8/9/09 1 Joe A 10 Mike
B 4
8/9/09 1 Bob A 10 Steve B
2
8/9/09 1 Jim A 10 Bill
B 5
8/9/09 2 Joe A 10 Steve
B 4
8/9/09 2 Bill B 10 Bob
A 6
8/9/09 2 Mike B 10 Jim
A 4
I have the following query to total the points for winners:
SELECT tblResults_Points.Date, tblResults_Points.Round,
tblResults_Points.Team, Sum(tblResults_Points.Points) AS WP
FROM tblResults_Points
GROUP BY tblResults_Points.Date, tblResults_Points.Round,
tblResults_Points.Team;
What I need to see is this:
Date Round Team WP
8/9/09 1 A 30
8/9/09 1 B 0
8/9/09 2 A 10
8/9/09 2 B 20
Problem is what I am seeing is this:
Date Round Team WP
8/9/09 2 A 10
8/9/09 2 B 20
because there is no B in the Team field for round 1, I am getting no
values. It is the same for the query I run for loser points with no A
in the Team1 field for round 1
Can anyone help?