I’ve working with two tables but the linking fields are not identical. The tables that need to be joined are:
EXPDIST_INV.COST_CENT_DSC & LOS_RESPONSIBILITY.LOS
The first three characters of EXPDIST_INV.COST_CENT_DSC need to be joined to LOS_RESPONSIBILITY.LOS (this is a 3 character field).
Is there a way to join fields using a substring in the Database Expert? Or do I need to use the Add Command function?
I tried
Select *
From EXPDIST_INV, LOS_RESPONSIBILITY
Where SUBSTR(EXPDIST_INV.COST_CENT_DSC,3,3) = LOS_RESPONSIBILITY.LOS
but it didn’t like it. My SQL experience is very limited. I'm on Crystal XI.
Thanks for any help - Shannon
EXPDIST_INV.COST_CENT_DSC & LOS_RESPONSIBILITY.LOS
The first three characters of EXPDIST_INV.COST_CENT_DSC need to be joined to LOS_RESPONSIBILITY.LOS (this is a 3 character field).
Is there a way to join fields using a substring in the Database Expert? Or do I need to use the Add Command function?
I tried
Select *
From EXPDIST_INV, LOS_RESPONSIBILITY
Where SUBSTR(EXPDIST_INV.COST_CENT_DSC,3,3) = LOS_RESPONSIBILITY.LOS
but it didn’t like it. My SQL experience is very limited. I'm on Crystal XI.
Thanks for any help - Shannon