on 10-03-2014 5:02 PM
Hi All,
I have two tables I would like to join. Table 1's PK is a number, Table 2's PK is identical to Table 1, but with a character at the front:
Table 1 PK | Table 2 PK |
---|---|
123 | J123 |
124 | X124 |
125 | J125 |
126 | K126 |
127 | X127 |
How can you join on a substring in Information Steward's view screen?
Thanks,
Katherine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys! Worked like a charm.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is simple. You can directly do this in where clause. Considering your field name in both tables are ID.
Table_1.ID=cast( substr(Table_2.ID,2,length(Table_2.ID )),'INT')
Hope this helps.
Regards,
Ansari MS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.