Greetings


I have two tables which I am trying to combine and I did the below union query and it is working, but I want the data to be in text file.
Please help me on this.
SELECT STAFFID, DATE_, DATE1, NoOfHours, PROJECTID, TASKCODE, DetailedDescription, REMARKS, CRE FROM [TIME SHEET DATA-AS];
UNION SELECT STAFFID, DATE_, DATE1, NoOfHours, PROJECTID, TASKCODE, DetailedDescription, REMARKS, CRE FROM [TIME SHEET DATA-ASAMI];
Regards,
VKKT