title: Find Nearest rows in SQL
body: <p>I have table with 2 records and column name quantity.</p>
  
  <pre><code>quantity
  2268
  22680
  </code></pre>
  
  <p>so,
  when my required quantity 2500 then i want to display both 2 records
  when my required quantity 2000 then display 1st row.</p>