I need to export 2 queries to 1 csv file. The 2 queries do not have the same number of columns. I cannot use Union because this requires I have the same column numbers. I cannot make alias columns or null columns because the resulting exported file will have commas to signify a blank field. The result should be like this:
Hdr John 2 02/14/1989 Manager NY (from query 1)
Dtl Eric 06/04/1989 John (from query 2)
Dtl Lisa 11/15/1995 John (from query 2)
Hdr John 2 02/14/1989 Manager NY (from query 1)
Dtl Eric 06/04/1989 John (from query 2)
Dtl Lisa 11/15/1995 John (from query 2)