title: How to pull and loop the data in R studio?
body: <p>It would be great if some one could help on below requirement.
  <a href="https://i.stack.imgur.com/r4Khn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r4Khn.png" alt="Hive Database Table"></a></p>
  
  <p>My requirement is pull the data from Hive table based on "Fiscal Quarter" and load it to txt file. Process should be like loop, i would expect 3 txt files (FY19Q1_Txtfile1.txt/FY19Q2_Txtfile2.txt/FY19Q3_Txtfile3.txt) with 3 iterations.</p>