Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm Looking for a query builder that can assist me in creating CAML queries that will contain inner joins.

Does anything like this exist?

Update: To ask my question more clearly, I am looking for a software package that assists in writing these join queries more easily. Previously we had CAML Builder, but that doesn't support joins.

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

Yes, this was a feature added in SharePoint 2010. Take a look at the SPQuery.Joins property, and here's an example by Tobias Zimmergren.

This is also possible using LINQ to SharePoint, which generates the appropriate CAML behind the scenes.

share|improve this answer
1  
i found that linq to query has an issue in a high volume scenarios. Be careful and use with caution. –  Roman Apr 4 at 6:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.