title: ORA - 02287 sequence number not allowed here
body: <p>I have a table name test which has three columns id, m_id and s_m_id</p>
  
  <p>I am executing below query</p>
  
  <pre><code>select id,test.nextval listagg(m_id || ',' || s_m_id, ';') within group (order by m_id) as merge_ids 
  from test t group by id
  </code></pre>
  
  <p>than I am getting error  ORA - 02287 sequence number not allowed here.</p>