I've a column location in my table. I've used it as a common column to join two tables 1.Factory 2.Inventory Like Factory.location = inventory.location But I'm having a problem.. For example Location in factory table just has 09 where inventory table has 009 doesn't match but for three digit numbers it's matching eg: 115 = 115, 999=999. But in the output, I still get 009 but I'm not getting data in another column for the ones which doesn't have three digits. Please tell me how to make it 3 digit and join. I tried putting it as (Case when length(factory.location)<3 Then concat('0',factory.location) else inventory.location End) as location in select statement.
Please help