I have a table as follows
id qNum opNum
1 1 3
2 1 3
3 1 2
4 1 1
5 2 4
6 2 4
7 2 4
8 2 1
I need to get the count grouped by qNum and then opNum, and this is fine to do, but I only want to return the qNum and opNum of the records with the max count in each grouping
So I ideally need a recordset that looks like
qNum opNum maxCount
1 3 2
2 4 3
Help would be greatly appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…