Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

order in load from QVD

Hi,

could you tell me if I can use order by clause in Load statement from QVD?

(that make me an error).

Thanks

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

You should be able to... If it's a large QVD, the load becomes not optimized though, so you might be better off loading the QVD with no order by,  and then reloading in memory with the sorting options.

You might be getting an error if you are adding the Order By before the qualifier (qvd), or if one of your field names is misspelled.

Otherwise, it should work...

cheers,

Oleg

View solution in original post

2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

You should be able to... If it's a large QVD, the load becomes not optimized though, so you might be better off loading the QVD with no order by,  and then reloading in memory with the sorting options.

You might be getting an error if you are adding the Order By before the qualifier (qvd), or if one of your field names is misspelled.

Otherwise, it should work...

cheers,

Oleg

Not applicable
Author

ORDER BY does not work when directly loading from a QVD file. 

You need to load it into a temp table, then sort in a second load from the resident table.  Be sure to use NoConcatenate in the second load, so the tables aren't combined.