I have one custom column named 'fhdr_Index' which is type of Number field.
I want to get maximum number in this column so i have applied Order By with Ascending 'FALSE' and RowLimit =1 . But query is not working.
qry.Query =
@" <Where>
<IsNotNull>
<FieldRef Name='ID'/>
</IsNotNull>
</Where>
<OrderBy >
<FieldRef Name='fhdr_Index' Ascending='FALSE' />
</OrderBy>";
qry.RowLimit = 1;
SPListItemCollection listItems = spList.GetItems(qry);
First item from list is return. And If i apply query on ID column rather then fhdr_Index column query is working.