range between values

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
muralik
Participant
Posts: 1
Joined: Thu Feb 14, 2008 7:52 am

range between values

Post by muralik »

hi ,

i have rw=equirement like this...

i got data from 2 tables fields like

table1

if lenth of value is one the multiply by 10

ex :1*10=10

table2 fields like
from to rating
5 10 1

11 20 2

21 30 3

suppose table1 value falls between any of table2 fields from and to corresponding rating value needs to be load into target.

ex :

if tbl1 value is 9 then rating should be 1(range between from and to)

please help
--Regards
Murali
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

:!: Please read your content before you post. It is not professional to expect others to decrypt your spec.

If you are planning for a range lookup, you can write your own SQL with between clause.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

As mentioned, you wont need a Datastage to join get the result, as lot as both tables are in same database. Join the tables and get the result.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
seshikumar
Participant
Posts: 44
Joined: Fri Mar 16, 2007 5:51 am

Post by seshikumar »

hi Kumar,

Thanks for your response.

The tables are not same database.
seshu
Post Reply