title: Calling a function iteratively inside a view creation with PL/SQL
body: <p>I have this table:</p>
  
  <pre><code>Account_id  |  ...    |   Message
  
  111111      |  ...    |   blablablablabla
  222222      |  ...    |   heyheyheyheyheyheyhey
  111111      |  ...    |   blablablablablabla
  222222      |  ...    |   heyheyheyhey
  </code></pre>
  
  <p>I've made a PL/SQL function that concatenates all messages for each account_id, however my function just do it for one account_id each time, because the input argument of the function is the account_id of the account of which I want the concatenate messages.</p>
  
  <p>Now the problem is that I want to create a view of that table and run my function for all the account_id's, all at once. </p>
  
  <p>How can I call my function iteratively during the view creation?</p>
  
  <p>Thanks in advance.</p>