on 07-29-2015 5:54 PM
Hi,
I am trying to join output of two queries and joining on a varchar(255) field. Field Eg: 20150706C-4555510240-LA300007201500
For some reason the fields are not joining though I know there are records with matching fields. I tried ltrim(rtrim()) for both the inputs, did not work.
I tried a cast( varchar255) just to make sure dint work either.
Any suggestion is appreciated, having a hard time to do the join
Am using version 14.2.2.446
Cheers!
Hi Josh J
Did you resolve your issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Josh,
Can you execute the SQL on database to check if it is returning rows or not. Do you have any other integer column or key column in both the tables which can be joined.
Regards
Arun Sasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Copy and paste the generated SQL (from the DS Designer menu: Validation > Display Optimized SQL) and run it directly against your database. Does it work there as expected?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can troubleshoot this issue in multiple ways,
Cheers
Mohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Josh,
Try this join in the database end if it works or not first, seems Varchar with 255 size is giving the problem.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Run it in Debug mode and see if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.