M
Marshallp24
Hi,
I have a problem trying to find the highest value for each row. I have
a query, which adds up scores. Its based on a table something like
this
orgID Score1 Score2 Score3 Score4 Score5 Score6
1 10 1 5 2 11 20
2 1 4 2 12 11 24
1 10 7 15 12 1 2
and so on.....
I have query that basicly adds up some of the scores into groups. So
its like:
orgID ScoreSet1:[Score1]+[Score2]+[Score3] ScoreSet2:[Score4]+[Score5]+
[Score6]
1 16 33
2 7 47
3 32 15
So I want to find the highest of the 2 scoresets. So it'd look like:
orgID ScoreSet1 ScoreSet2 HighestScoreSet
1 16 33 33
2 7 47 47
3 32 15 32
How can I do this?
Tried Max(ScoreSet1, ScoreSet2), but it didnt work.
any ideas?
I have a problem trying to find the highest value for each row. I have
a query, which adds up scores. Its based on a table something like
this
orgID Score1 Score2 Score3 Score4 Score5 Score6
1 10 1 5 2 11 20
2 1 4 2 12 11 24
1 10 7 15 12 1 2
and so on.....
I have query that basicly adds up some of the scores into groups. So
its like:
orgID ScoreSet1:[Score1]+[Score2]+[Score3] ScoreSet2:[Score4]+[Score5]+
[Score6]
1 16 33
2 7 47
3 32 15
So I want to find the highest of the 2 scoresets. So it'd look like:
orgID ScoreSet1 ScoreSet2 HighestScoreSet
1 16 33 33
2 7 47 47
3 32 15 32
How can I do this?
Tried Max(ScoreSet1, ScoreSet2), but it didnt work.
any ideas?