This is one of those questions that will seem so easy, but it's not working.
I have a SQL with a couple of insert statements and finally a select statement like the following
INSERT INTO A select 1 from dual;
INSERT INTO B select 1 from dual;
select * from A where A = B
When I run the query it executes and returns results. When I use any of the export options to automate and schedule the query it always returns 0 results. I am using the "To File" option in the report automation and I can't figure out why it will not work. If I only use a select statement in the report automation it works just fine, but it's either the multiple statements or inserts that are causing it to not produce results.
If anyone could provide any insight I would appreciate it. I've been trying to figure this out the past week and I've had no success. Thank you in advance.