sharepointmosscaml

MAX query using CAML


I want to select a sharepoint list item which has the Maximum value for a particular column. How can I do this using CAML queries?


Solution

  • <Query>
        <OrderBy>
                <FieldRef Name="particularcolumn" Ascending="FALSE" />
        </OrderBy>
    </Query>