title: Needed help to build caml Query with multiple <And>
body: <p>I am getting a query from list view by view.Query i got the following</p>
  
  <pre><code>&lt;QUERY&gt;&lt;GroupBy Collapse="TRUE" GroupLimit="100"&gt;&lt;FieldRef Name="AlertGrp" /&gt;&lt;/GroupBy&gt;       &lt;OrderBy&gt;&lt;FieldRef Name="PriorityNoLink" Ascending="FALSE" /&gt;&lt;FieldRef Name="match_time"   Ascending="FALSE" /&gt;&lt;/OrderBy&gt;&lt;Where&gt;&lt;And&gt;&lt;And&gt;&lt;And&gt;
  &lt;Neq&gt;&lt;FieldRef Name="Category" /&gt;&lt;Value Type="Text"&gt;ACH Alert&lt;/Value&gt;&lt;/Neq&gt;
  &lt;Neq&gt;&lt;FieldRef Name="Category" /&gt;&lt;Value Type="Text"&gt;Check Fraud&lt;/Value&gt;&lt;/Neq&gt;
  &lt;/And&gt;
  &lt;IsNull&gt;&lt;FieldRef Name="Close_x0020_Reason" /&gt;&lt;/IsNull&gt;&lt;/And&gt;
  &lt;Eq&gt;&lt;FieldRef Name="AlertType" /&gt;&lt;Value Type="Text"&gt;Alert&lt;/Value&gt;&lt;/Eq&gt;
  &lt;/And&gt;
  &lt;/Where&gt;&lt;/QUERY&gt;
  </code></pre>
  
  <p>I want to add one more condition something like </p>
  
  <pre><code>&lt;Geq&gt;&lt;FieldRef Name="Created" /&gt;&lt;Value Type="DateTime"&gt;&lt;Today OffsetDays="-5" /&gt;    &lt;/Value&gt;&lt;/Geq&gt;
  </code></pre>
  
  <p>I added after AlertType</p>
  
  <pre><code>&lt;Eq&gt;&lt;FieldRef Name="AlertType" /&gt;&lt;Value Type="Text"&gt;Alert&lt;/Value&gt;&lt;/Eq&gt;
  &lt;/And&gt;
  </code></pre>
  
  <p>and start tag &lt; And> added in the beginning along with "&lt; And>&lt; And>&lt; And>"</p>
  
  <p>But showing wrong result. Kindly help me where i can add the new condition.</p>
  
  <p>regards
  jhanani</p>