Page 1 of 1
Sort stage is not wrking
Posted: Wed Mar 07, 2012 1:35 am
by atul9806
Hi guys
I am creating a server job, in which taking input from one table and applied sort stage to sort the table with a column and stor the data into other table
job is running fine, but not sorting the table
I used the <column_name> <D>
for order by column name desc.
Please suggest
Thanks
Atul
Posted: Wed Mar 07, 2012 1:55 am
by kandyshandy
You should give "Sort criteria, defining which Input Link's Column Names to sort on."
Posted: Wed Mar 07, 2012 2:02 am
by atul9806
Hi there
this is my sorting criteria. I am taking the input from the user
Please help
Posted: Wed Mar 07, 2012 4:23 am
by ray.wurlod
Sort probably is working, but the database server for your target table is storing rows in whatever order it feels like. It is a fundamental tenet of databases that storage order is under control only of the database engine.
Posted: Wed Mar 07, 2012 4:49 am
by kandyshandy
Atul, try giving like this
Posted: Wed Mar 07, 2012 7:42 am
by chulett
You are missing a fundamental point, the one Ray pointed out. To check your sorting, run the output to a flat file - tables have no 'sort' to them. If you want data out in a certain order, use an order by.
Posted: Sun Mar 18, 2012 2:00 pm
by atul9806
yes guys, you are right... I got the sorted data in a flat file
thanks again
![Smile :)](./images/smilies/icon_smile.gif)