Question

I want to write an equivalent CAML query for the given SQL Query below:

select top 10 * from TestTable where ItemID in ( select top 10 ItemID from TestTable order by Views desc) order by UserName desc;

How do I do this?

Was it helpful?

Solution

Check out U2U CAML Query Builder, it'll help you build any number of CAML Query possibilities that you need.

http://www.u2u.net/res/Tools/CamlQueryBuilder.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top