The below SQL executes some times and does not execute at other times but fails with SQL0440N error.
select row_number() over(order by last_reset_timestamp) as number, snapshot_timestamp, last_reset_timestamp, table_schema, table_name, table_type, rows_read, rows_written, overflow_accesses, page_reorgs from snapshot.snapshot_table order by last_reset_timestamp;
Any idea why?
TIA.