sorry i think i got the problem now (or at least understand more).
I have this
<?xml version="1.0" encoding="utf-8" ?>
<root>
<list title="GLBE Metrics" relativeSiteUrl="/Testsite/" tableName="GLBEMetrics" useDisplayName="true">
<fields>Date</fields>
<query xmlns="
http://schemas.microsoft.com/sharepoint/soap/">
<OrderBy>
<FieldRef Name="TradeDate" Ascending="False" />
</OrderBy>
</query>
</list>
</root>
and the ascending seems to work fine. i change to true and it changes the order.
when i have this however where i've added the sqlOp it seems like the sqlOp does not care about the order of teh data set.
is there a way to get the sqlOps to respect the order by? or si ther a sqlOp that will do order by? Thanks. also i had to add this tag to the query element to get some of the other camls to work xmlns="
http://schemas.microsoft.com/sharepoint/soap/"
<?xml version="1.0" encoding="utf-8" ?>
<root>
<list title="GLBE Metrics" relativeSiteUrl="/Testsite/" tableName="GLBEMetrics" useDisplayName="true">
<fields>Date</fields>
<query xmlns="
http://schemas.microsoft.com/sharepoint/soap/">
<OrderBy>
<FieldRef Name="TradeDate" Ascending="False" />
</OrderBy>
</query>
<sqlOp op="distinct">
<dstTableName>DistinctTradeDate</dstTableName>
<tableName>GLBEMetrics</tableName>
<fieldName>Date</fieldName>
</sqlOp>
<resultSet>DistinctTradeDate</resultSet>
</list>
</root>