title: How to SELECT top 10 products most sells?
body: <p>I have a table named "items" where are stored information about each product sold in each order, but I want to retrieve top 10 orders with max quantity of products sells. I've executed a SELECT statement to retrieve number of products sold in each orders but I don't know How I can retrieve only TOP 10 orders. Thanks.</p>
  
  <pre><code>SELECT   codigo_orden AS ORDER_ID, COUNT(codigo_producto) AS PRODUCTS_SOLD
  FROM     cs_items
  GROUP BY codigo_orden
  ORDER BY 2 DESC;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/kWVY5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kWVY5.jpg" alt="enter image description here"></a></p>
  
  <p>But I just want to retrieve TOP 10 most products sold!! Something like that:</p>
  
  <p><a href="https://i.stack.imgur.com/VaXuP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VaXuP.jpg" alt="enter image description here"></a></p>