I am using the following code to save a csv file. The file is created in the location. However, no data is getting exported. The code is as below.
Drop table Table_Name;
CREATE TABLE Table_Name as
SELECT
Wo_Id,Sum(Time_taken2) as TimeTotal
from Parent_Table
where MAPdata='Mapping Name'
AND TASKTYPE='Clean and Completed'
group by WO_ID
Order by TimeTotal;
spool "Path\table_name.csv"
SELECT /*csv*/* from Table_Name;
spool off;
Drop table Table_Name;
What could be the issue. I am using oracle sql developer 4.X version.