I’m running a query
select * from transactions which gives me the recordsets
ppno ---------name---------------amnt
1309 ---------Rajasekar----------12000
1210 ---------Mani ----------21000
1309 ---------Sank ----------90012
1100 ---------still ----------12232
1309 ---------Jack ----------23344
I want to group the resultset by number of occurrences of the same ppno and sort it based on the number of occurrences. For example, I want something like this.
ppno ---------name---------------amnt
1309 ---------Rajasekar----------12000
1309 ---------Sank ----------90012
1309 ---------Jack ----------23344
1210 ---------Mani ----------21000
1100 ---------still ----------12232
1 Answer