title: Procedure to create .csv ouput
body: <p>please help me to create a procedure to export data to specified path from oracle database as .csv file take study names from another table.</p>
  
  <p><strong>QUERY :</strong> <code>select * from enrollment where study_name = 'FTY67' ;</code></p>
  
  <p>I have another table(studies) in same database with all studynames. </p>
  
  <p>is there any way to create procedure that will take study names from studies table and repeat this procedure to create .csv files for all studies?</p>
  
  <p>read some articles in internet but not found anything related to this.
  please help.</p>