in reply to Re: Retrieving data with largest count
in thread Retrieving data with largest count

I have purposely left this code not working exactly as required (group is omitted) to give you something to work towards.

Also, your code finds the highest count per item, not per group. Since each item probably only appears once, you're just printing out the input.

  • Comment on Re^2: Retrieving data with largest count

Replies are listed 'Best First'.
Re^3: Retrieving data with largest count
by Limbic~Region (Chancellor) on Jun 02, 2009 at 17:02 UTC
    ikegami,
    Yes, (group is omitted) means I didn't consider group which is what the OP asked for. The was intentional as indicated in the same comment. I originally misread the question and when I discovered my output didn't match the OPs (before posting), I decided to leave it broken. Teach a man to fish so to speak. I guess I should have made that more clear.

    Cheers - L~R