Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Finding Min and Max values from big qvd

Hi, the straight forward way to find min and max will be something like the code below. My problem is that it in my case takes about 5 minutes to do it on a fast machine. Since my Qvd is a growing file it will take longer and longer. Besides splitting the qvd file, is there a better way to quicker find the min and max values?

tMinMax:
LOAD
min(ID) as Min,
max(ID) as Max,
max(ID) - min(ID) as Range
from 'qvd\BigTable.qvd' (qvd) where DATE > '$(30_days_back)';

Regards, Ludvig.

4 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Not applicable
Author

Hi, I also saw that suggestion. Didn't get it to work together with my example. However, solved the issue another way. Thanks anyway.

johnw
Champion III
Champion III

Thanks, Rakesh. I hadn't seen or thought of that, so the link made me happy. That approach is now saving a few minutes of time in my longest-loading script, and I'm going to keep an eye out for other opportunities to use it.

Not applicable
Author

Thanks Rakesh!

The link is awesome!!!