I have two tables in which I need to join. Problem is the only fields I can use in each table are not totally identical, but it is all I can use.
Voting.movie_id = a123456789
Movies.movie_id = 123456789
As you can see one has the letter 'a' in the front. The rest totally matches and always will. Its just that 'a' in front that makes it different.
I was hoping there was a way to do this with a join so I tried
SELECT *
FROM voting
RIGHT JOIN movies ON voting.movie_id = 'a'+movies.movie_id
ORDER BY voting.ID DESC
LIMIT 40
SELECT *
FROM voting
RIGHT JOIN movies ON voting.movie_id = '%'+movies.movie_id
ORDER BY voting.ID DESC
LIMIT 40
This did not work, is there a way to do this?