title: How to get strings in SQL Table, which are top1 or top3
body: <p>That's code + result
  I was trying different ways, but still don't know how to get from this TOP 1 or TOP 3 by CNT.</p>
  
  <p>Result should look like 
  Abon№5   -  800, for top1 and same for top 3</p>
  
  <p>That's code:</p>
  
  <pre><code>select a.c_name as abonentname, count(*) as cnt
  from st_abonents a
  inner join qry_type qt on a.id = qt.c_ab_ref
  inner join qry_queue qq on qt.id = qq.c_qry_type
  group by a.c_name
  order by cnt;
  </code></pre>
  
  <p>And result</p>
  
  <p><a href="https://i.stack.imgur.com/j5pvT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j5pvT.png" alt="QUES"></a></p>
  
  <p>What should I add to make it work?</p>