select data from one coloum according to second coloumn : hello i think the title is not correct but here explain you about the exect problem.
i have a table name 'testdata' in which four rows:-
[enter image description here][1]

 [1]: https://i.stack.imgur.com/WSDH8.png

in this image have structure of table.

now my recruitment is :-

 i want data according to bada no. in with total of Daily Milk
ex.:- 

 1. b1 have total dailymilk is 15
 2. b2 have total dailymilk is 14
 3. b3 have total dailymilk is 18
i want something like:- 
[enter image description here][2]


 
  [2]: https://i.stack.imgur.com/SnIFn.png

Hope you understand. Help me Please