I am new to SQL and I'd like to export the result of my query as a .csv file. This question was answered with a point and click solution.
I wish to automate this query such that it runs every day at 6 am. I come from an R background, so I'm wondering if there's a command similar to write.csv
. Is it possible to simply write a command in the last line of the query to tell the computer to write the result as a .csv
file in a given folder?