Question
2 where clauses
Hi i have 2 tables
**TABLE1**
PlayerName
PlayerID
Points
BonusMom
BonusTwt
BonusTrs
**TABLE2**
TeamName
QONE
QTWO
QTHREE
PlayerOne
PlayerTwo
PlayerThree
PlayerFour
PlayerFive
PlayerSix
PlayerSeven
PlayerEight
PlayerNine
PlayerTen
PlayerEleven
What i need is
Total of (BonusMom) where PlayerID = QONE
Total of (BonusTwt) where PlayerID = QTWO
Total of (BonusTrs) where PlayerID = QTHREE
Total of (Points) where
PlayerID = PlayerOne or
PlayerID = PlayerTwo or
PlayerID = PlayerThree or
PlayerID = PlayerFour or
PlayerID = PlayerFive or
PlayerID = PlayerSix or
PlayerID = PlayerSeven or
PlayerID = PlayerEight or
PlayerID = PlayerNine or
PlayerID = PlayerTen or
PlayerID = PlayerEleven
Now i have been playing around with the code below but cant get it right
can anyone help me
**TABLE1**
PlayerName
PlayerID
Points
BonusMom
BonusTwt
BonusTrs
**TABLE2**
TeamName
QONE
QTWO
QTHREE
PlayerOne
PlayerTwo
PlayerThree
PlayerFour
PlayerFive
PlayerSix
PlayerSeven
PlayerEight
PlayerNine
PlayerTen
PlayerEleven
What i need is
Total of (BonusMom) where PlayerID = QONE
Total of (BonusTwt) where PlayerID = QTWO
Total of (BonusTrs) where PlayerID = QTHREE
Total of (Points) where
PlayerID = PlayerOne or
PlayerID = PlayerTwo or
PlayerID = PlayerThree or
PlayerID = PlayerFour or
PlayerID = PlayerFive or
PlayerID = PlayerSix or
PlayerID = PlayerSeven or
PlayerID = PlayerEight or
PlayerID = PlayerNine or
PlayerID = PlayerTen or
PlayerID = PlayerEleven
Now i have been playing around with the code below but cant get it right
can anyone help me