Amount Column as a key in Lookup File Set
Moderators: chulett, rschirm, roy
Amount Column as a key in Lookup File Set
Hi,
I have created AMOUNT as Key Column in Lookup file set(datatype Decimal).
And the same im using in next job.
But the match found(checked with query).But not coming in Lookupset expected result.
I have created AMOUNT as Key Column in Lookup file set(datatype Decimal).
And the same im using in next job.
But the match found(checked with query).But not coming in Lookupset expected result.
Regards
LakNar
LakNar
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
Check for the format.
You have to check the format of the data available in the Lookup set and format of the Data in source.
I would suggest, try to use some other column as key coulmn and write the Amount field to sequential file and source data to the same sequential file for testing purpose. Try to look for the format difference.
When you use SQL queries they usually match as they are in single world and single format, usually this would be the issue.
Rgds,
Chakradhar.
I would suggest, try to use some other column as key coulmn and write the Amount field to sequential file and source data to the same sequential file for testing purpose. Try to look for the format difference.
When you use SQL queries they usually match as they are in single world and single format, usually this would be the issue.
Rgds,
Chakradhar.
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
Check how the data looks when you view data in source stage and in lookup fileset.
there is nothing wrong in using a decimal field as key. We just need to take care of the format DS uses to compare/join.
I assume that the length and scale are the same for that key field in both source and lookup fileset
there is nothing wrong in using a decimal field as key. We just need to take care of the format DS uses to compare/join.
I assume that the length and scale are the same for that key field in both source and lookup fileset
Kandy
_________________
Try and Try again…You will succeed atlast!!
_________________
Try and Try again…You will succeed atlast!!
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
i splited the records those which are joining and processed.
the records are getting joined.
e.g.
12 25.00 name
12 35.00 name1
when the above records process with other records the records not getting joined.it contains thousands of records.
e.g
code
12 25.00 name
15 34.00 name
15 44.00 name
the records are getting joined.
e.g.
12 25.00 name
12 35.00 name1
when the above records process with other records the records not getting joined.it contains thousands of records.
e.g
code
12 25.00 name
15 34.00 name
15 44.00 name
Regards
LakNar
LakNar
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
To put it simple... when the key matches, records will be joined. This is how DS look up works (based up on your join condition). So you may need to look by SQL how many records from source has matching keys in look up table, then see whether DS works the same way.
Kandy
_________________
Try and Try again…You will succeed atlast!!
_________________
Try and Try again…You will succeed atlast!!