There is no way to export from a SQL statement directly to CSV. You can either use the first option or other options available on the website seen below.
1) The easiest way to do this is to use the BCP Tool (via command line):
bcp user_table out C:\Users\user\Downloadsdata.csv
-S SERVER\MSSQLSERVER,1433 -c -t"," -T
2) Other options are available below:
https://learnsql.com/blog/how-to-export-csv-from-sql-query/
-----------------------------------------
If this is helpful please accept answer.