Hi guys,
I am here to get records based on categories.
My table foo has fields [id, name, class]. my records can be like:
1, ram, 10
2, hari, 9
3, sita, 10
4, gita, 9
5, rita, 5
6, tina, 7
8, nita, 8
9, bita, 5
10,seta, 7
...and more...
Now i would like to get result with each record from different class.. i.e something like
1, ram, 10
2, hari, 9
5, rita, 5
6, tina, 7
8, nita, 8
i.e just top 1 records as per class