Forum Discussion
NATURALINNERJOIN function doesn't work matching a text column
- 5 years ago
Hi Anonymous -
I cannot replicate your results. Perhaps I don't have the correct data in Tab_A and Tab_B?
Tab_A
Codeobs_value
aaaa 1 bbbb 2 Tab_B
Codeexp_value
aaaa 3 bbbb 4 cccc 5 TAB_B_A_JOIN (copied your code directly from the post)
CodeExpected valueObserved value
aaaa 3 1 bbbb 4 2 If that is not the correct source data, please clarify. Perhaps there are relationships you're not aware of that may be affecting your results?
Hope this helps
David
Hi Anonymous -
I cannot replicate your results. Perhaps I don't have the correct data in Tab_A and Tab_B?
Tab_A
Codeobs_value
| aaaa | 1 |
| bbbb | 2 |
Tab_B
Codeexp_value
| aaaa | 3 |
| bbbb | 4 |
| cccc | 5 |
TAB_B_A_JOIN (copied your code directly from the post)
CodeExpected valueObserved value
| aaaa | 3 | 1 |
| bbbb | 4 | 2 |
If that is not the correct source data, please clarify. Perhaps there are relationships you're not aware of that may be affecting your results?
Hope this helps
David
Hi, thanks for your reply.
I've discovered some errors in data for Tab_A and Tab_B, sorry.
It seems that the NATURALINNERJOIN functions rightly as you have indicated.
Many thanks and bye