Hi guys
I am trying to write a particular query for a database that records different issues that affect a company but its not working quite right.
The main fields include approx 10 different config items of issues, the issue description itself and a score depending on the impact/severity.
What I want is to show the highest score per config item, which will return 10 rows, one for each config. I need the issue description to correspond with the high score.
I tried using 'group by' on the config, 'max' on the score and 'first' with the issue description which returns 10 rows however the issue does not correspond with the score. I have tried making it 'last' and also others however its not working right.
Any ideas if there is a way to do this?
Thanks
Gareth
I am trying to write a particular query for a database that records different issues that affect a company but its not working quite right.
The main fields include approx 10 different config items of issues, the issue description itself and a score depending on the impact/severity.
What I want is to show the highest score per config item, which will return 10 rows, one for each config. I need the issue description to correspond with the high score.
I tried using 'group by' on the config, 'max' on the score and 'first' with the issue description which returns 10 rows however the issue does not correspond with the score. I have tried making it 'last' and also others however its not working right.
Any ideas if there is a way to do this?
Thanks
Gareth
Comment