I have a destination table(created as an output of some other query), simple order by on one of its column is resulting "resource exceeded" error message. Destination table created has 8.5 million rows and 6 columns (size 567 MB approx).
select col1,col2.....col6 from desttable order by col 5 desc
is resulting "resource exceeded" error message.