title: how to merge query results in one file adding a header and footer from other two queries
body: <p>I'm doing a query that merge three different queries.</p>
  
  <p>My query looks like this...</p>
  
  <pre><code>HEADER ( a query  with only one line of information).    
  BODY ( a query with many rows).    
  FOOTER ( a query  with only one line of information)
  </code></pre>
  
  <p>I have the three queries independently, but I have to merge them in only one result to be send to a txt file.</p>
  
  <p>I do not have any idea how to do this because in theory the first query must be the first line of the result and the last query must be the foot....</p>
  
  <p>Everything must be in continuous text... the problem is adding header and footer to the result..</p>