When I create a temp table using a WITH statement and run the query, I get the desired output, however, when I try and export as .xlxs or .csv in SQL Developer, it exports as a 0KB file. Why is this? Is there a workaround this? The reason why I'm using WITH is because IN maxes out at 1000 and I want to search for specific IDs. I also don't have permissions to create tables.
with base as (
select 4684 spid from dual union
select 112477 spid from dual union
...
select 6547 spid from dual
)
select *
from base
left join table on base.spid = table.supplypointid
where table.propertykey='MPCORE' and table.dateend is null

