Calculate top 4 values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Bravery

    Calculate top 4 values

    Hi all,

    C# How could I sum, the top 4 values of a bunch of values

    THanks
    RObert



  • Mufaka

    #2
    Re: Calculate top 4 values

    Sort them descending and then add the first 4 together.

    Robert Bravery wrote:
    Hi all,
    >
    C# How could I sum, the top 4 values of a bunch of values
    >
    THanks
    RObert
    >
    >
    >

    Comment

    • Marc Gravell

      #3
      Re: Calculate top 4 values

      I'd add to that:
      by "top" do you mean "largest" or "first" (the latter being the SQL meaning
      of "top")
      (since 2 posts already show the ambiguity)

      Marc


      Comment

      Working...