title: SharePoint: How to get Top 5 records by using CAML query from a list
body: <p>I have already created a webpart to show the data from list, but I really want is to only show top 5 records from that list (by using CAML query).</p>
  
  <p>Does anyone know how to do this? Many thanks. </p>
  
  <pre><code>&lt;Query&gt;
     &lt;OrderBy&gt;
        &lt;FieldRef Name='ID' Ascending='False' /&gt;
     &lt;/OrderBy&gt;
  &lt;/Query&gt;
  </code></pre>