Is it possible to copy multiple postgresql queries into single csv file? As of now am copying single query into csv file as
copy (select * from table1) to 'file.csv' with csv header;
Now i want to copy 2 query result together . Is that possible ? something like,
copy (select * from table1,select name from table2) to 'file.csv' with csv header
Any help?