Hi,
Table to hold soccer scores:
ID, ScoreTypeID, UserID, SeasonID
Since there are 3 Type of Scores (ScoreTypeID -> Goal (regular), Goal (penalty), Assist) it makes it a bit hard for me find out in ONE SINGLE QUERY how many Goals, Penalties and Assists a Players (UserID) scored within a Season (SeasonID).
I'd love to see results like this:
=======================================
userid, season, goal, penaly, assist
47, 03/04, 7, 1, 11
47, 04/05, 4, 2, 8
47, 05/06, 1, 0, 2
hmmm... this must be doable.
thanks
Table to hold soccer scores:
ID, ScoreTypeID, UserID, SeasonID
Since there are 3 Type of Scores (ScoreTypeID -> Goal (regular), Goal (penalty), Assist) it makes it a bit hard for me find out in ONE SINGLE QUERY how many Goals, Penalties and Assists a Players (UserID) scored within a Season (SeasonID).
I'd love to see results like this:
=======================================
userid, season, goal, penaly, assist
47, 03/04, 7, 1, 11
47, 04/05, 4, 2, 8
47, 05/06, 1, 0, 2
hmmm... this must be doable.
thanks