Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sort without using Sort Tab

Hello!
I have some table, for ex.

ID    Sales

1       30

2       40

3       20

4        5

5       15

6       16

Field 'Sales' is calculated in expression and i need to sort it descending (not using Sort tab, because i'll work with sorted values further)

Thanks for answers!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

The only way to do that is to do the sorting in the load script:

Temp:

Load ID, Sales From ...mysource...;

Result:

Noconcatenate

Load ID, Sales Resident Temp

Order by Sales desc;

Drop Table Temp;


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

The only way to do that is to do the sorting in the load script:

Temp:

Load ID, Sales From ...mysource...;

Result:

Noconcatenate

Load ID, Sales Resident Temp

Order by Sales desc;

Drop Table Temp;


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Try like

In the script use Order by function.................