title: Dynamic parameter for NTILE
body: <p>I have table which will have row count between <em>25k</em> to <em>250k</em>. Now I need to divide this whole table in chunks for processing using <code>NTILE</code>. If I will give fixed count as <code>NTILE(4)</code>, It works fine for me. Do we have any way to pass parameter dynamically?</p>
  
  <p>I want to maintain individual batch size to <em>25k</em>. So if table has <em>40k</em> rows parameter value should be <em>2</em>, If its <em>150k</em>, it should be <em>6</em> and so on...</p>
  
  <p>Kindly suggest how to achieve this.</p>