title: how to get the sql result in below format
body: <p>I have data in mysql DB in below format and I am trying to fetch the result in the format mentioned</p>
  <p><strong>I have Data in DB in below format:</strong></p>
  <pre><code>**name, stockTimeInterval, date, stockTime, stockOpen**
  WIPRO, 5_min_stock_data, 2021-01-01 , 09:15:00, 385.05
  WIPRO, 5_min_stock_data, 2021-01-01 , 09:20:00, 386.60
  WIPRO, 5_min_stock_data, 2021-01-01 , 09:25:00, 387.45
  
  WIPRO, 5_min_stock_data, 2021-02-01 , 09:15:00, 385.05
  WIPRO, 5_min_stock_data, 2021-02-01 , 09:20:00, 386.60
  WIPRO, 5_min_stock_data, 2021-02-01 , 09:25:00, 387.45
  
  WIPRO, 5_min_stock_data, 2021-03-01 , 09:15:00, 385.05
  WIPRO, 5_min_stock_data, 2021-03-01 , 09:20:00, 386.60
  WIPRO, 5_min_stock_data, 2021-03-01 , 09:25:00, 387.45
  </code></pre>
  <p><strong>Question:
  How to get the result in the format of:</strong></p>
  <pre><code>**name, stockTimeInterval, date, stockTime, stockOpen**
  WIPRO, 5_min_stock_data, 2021-01-01 , 09:15:00, 385.05
  WIPRO, 5_min_stock_data, 2021-02-01 , 09:15:00, 385.05
  WIPRO, 5_min_stock_data, 2021-03-01 , 09:15:00, 385.05
  
  WIPRO, 5_min_stock_data, 2021-01-01 , 09:20:00, 386.60
  WIPRO, 5_min_stock_data, 2021-02-01 , 09:20:00, 386.60
  WIPRO, 5_min_stock_data, 2021-03-01 , 09:20:00, 386.60
  
  WIPRO, 5_min_stock_data, 2021-01-01 , 09:25:00, 387.45
  WIPRO, 5_min_stock_data, 2021-02-01 , 09:25:00, 387.45
  WIPRO, 5_min_stock_data, 2021-03-01 , 09:25:00, 387.45
  </code></pre>