What kind of friends, I'm helping in a project in Laravel with a SQL database quite badly done, anyway ...
I have Table1 with a field called Code and Table2 with the field called Code, the problem is that I must join the tables using the Code field, but the content of the Code field of each table is different, example:
Table1.Codigo = 14EPR0199Y - Table2. Code = 02 030 005 14EPR0199Y
How can I join the two tables by Codigo?