Order by Clause in Oracle Enterprise stage of Parallel jobs

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Order by Clause in Oracle Enterprise stage of Parallel jobs

Post by jojipjohn »

Can we give Order by clause in oracle Enterprise stage of parallel jobs. If yes where are we giving this property.
Joji John
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

You should select your read method as user-defined sql and then use ORDER BY statement.
Kris

Where's the "Any" key?-Homer Simpson
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

You can have Order by / Having in 'Others' option in SQL builder.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

As suggested above you can either use User Defined SQL query of use SQL builder for Orderby clause.

But I think you are talking about Read method as Table and you have option only for SELECT LIST and WHERE Clause.

There is a work arround, add WHERE Clause option and enter WHERE condition and after that you can write ORDER BY...... If you do not have WHERE condition for the SQL, still add WHERE Clause option and enter condition as 1=1 ORDER BY.....

Hope it helps....
Assume everything I say or do is positive
prabu
Participant
Posts: 146
Joined: Fri Oct 22, 2004 9:12 am

Post by prabu »

csrazdan wrote:As suggested above you can either use User Defined SQL query of use SQL builder for Orderby clause.


There is a work arround, add WHERE Clause option and enter WHERE condition and after that you can write ORDER BY...... If you do not have WHERE condition for the SQL, still add WHERE Clause option and enter condition as 1=1 ORDER BY.....

Hope it helps....
yes, that's a good trick when you have to use NULLS LAST/FIRST as well in the order by clause
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

SQL Builder has option called "Sort Order" selecting the corresponding column with sort method (Asc or Dsc) will give the required output, which doesn't require 'Where' clause.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply