1 Condition CAML query
1 2 3 4 5 6 7 8 |
<Query> <Where> <And> <Eq><FieldRef Name='Month'/><Value Type='Text'>July</Value></Eq> </And> </Where> <Query> |
2 Condition CAML query
1 2 3 4 5 6 7 8 9 |
<Query> <Where> <And> <Eq><FieldRef Name='Month'/><Value Type='Text'>July</Value></Eq> <Eq><FieldRef Name='Year'/><Value Type='Text'>2017</Value></Eq> </And> </Where> <Query> |
3 Condition CAML query
Note: We can use two conditions only with in Operator
1 2 3 4 5 6 7 8 9 10 11 |
<Query> <Where> <And> <Eq><FieldRef Name='Title'/><Value Type='Text'>Demo Page</Value></Eq> <And> <Eq><FieldRef Name='Month'/><Value Type='Text'>July</Value></Eq> <Eq><FieldRef Name='Year'/><Value Type='Text'>2017</Value></Eq> </And> </And> </Where> <Query> |
4 Condition CAML query
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<Query> <Where> <And> <Contains><FieldRef Name='PageUrl' /><Value Type='Url'>WWW.MSN.COM</Value></Contains> <And> <Eq><FieldRef Name='Title'/><Value Type='Text'>Demo Page</Value></Eq> <And> <Eq><FieldRef Name='Month'/><Value Type='Text'>July</Value></Eq> <Eq><FieldRef Name='Year'/><Value Type='Text'>2017</Value></Eq> </And> </And> </And> </Where> <Query> |
5 Condition CAML query
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<Query> <Where> <And> <Eq><FieldRef Name='Title'/><Value Type='Text'>Demo Page</Value></Eq> <And> <Contains><FieldRef Name='URL' /><Value Type='Text'>WWW.MSN.COM</Value></Contains> <And> <Eq><FieldRef Name='Month'/><Value Type='Text'>July</Value></Eq> <And> <Eq><FieldRef Name='Quarter'/><Value Type='Text'>Q1</Value></Eq> <Eq><FieldRef Name='Year'/><Value Type='Text'>2017</Value></Eq> </And> </And> </And> </And> </Where> </Query> |