With this query I get a set of data
SELECT UID, CouncilNam, Probabilit, Scored_Lab, PTC_ID
FROM london.london
I want to group by PTC_ID and Scored_Lab which I can do with this...
SELECT UID, CouncilNam, Probabilit, Scored_Lab, PTC_ID
FROM london.london
GROUP BY PTC_ID, Scored_Lab
However, in the initial query there are multiple rows with grouped Scored_Lab and PTC_ID but differing Probability values. I want the lowest from this set but the default selection within group by doesn't provide this.
I have read dozens of similar queries on here but still cannot work it out. Any help would be appreciated.