I have this data in my tables Table1: ProfileID: 0014, 0012, 001 Table2: PurchasedprofileID: 14, 12, 1
select * from Table1 join Table2
on Table1.profileID = Table2.PurchasedprofileID
Should return : 14, 12, 1
How do I use the LTRIM or REPLACE to trim the leading zeros
ProfileId, PurchasedprofileID is of datatype varchar
Thanks Sun