I need to write a CAML query which satisfies the below condition:
projectstatus == "hold" OR projectstatus == "obsolete "
AND ilprilt not equal to "ilp frozen"
When I run this query, am getting records where
ilprilt not equal to "ilp frozen" and ilprilt not equal to "ilp not frozen"
I am missing something. Please help with the correct query. I believe the placement of AND / OR operator is giving me the error
projectstatus -- list column
Below is my query which isn't giving me correct results:
<Query>
<Where>
<Or>
<Eq>
<FieldRef Name='ProjectStatus' />
<Value Type='Choice'>Hold</Value>
</Eq>
<And>
<Eq>
<FieldRef Name='ProjectStatus' />
<Value Type='Choice'>Obsolete</Value>
</Eq>
<Neq>
<FieldRef Name='ILPRILT' />
<Value Type='Choice'>ILP Frozen</Value>
</Neq>
</And>
</Or>
</Where>
</Query>